whoops...
This commit is contained in:
parent
696376968a
commit
94a0cb90f2
1 changed files with 2 additions and 1 deletions
3
logic.c
3
logic.c
|
|
@ -128,7 +128,7 @@ int logic_copy_gamepad_status(logic_t *const logic, gamepad_status_t *const out)
|
|||
//logic->gamepad.flags &= ~GAMEPAD_STATUS_FLAGS_OPEN_STEAM_QAM;
|
||||
} else if ((releasing) && (elapsed_time >= PRESS_TIME_AFTER_CROSS_BUTTON_MS)) {
|
||||
logic->gamepad.center = 1;
|
||||
logic->gamepad.cross = 1;
|
||||
logic->gamepad.cross = 0;
|
||||
press_time = now;
|
||||
logic->gamepad.flags &= ~GAMEPAD_STATUS_FLAGS_OPEN_STEAM_QAM;
|
||||
}
|
||||
|
|
@ -141,6 +141,7 @@ int logic_copy_gamepad_status(logic_t *const logic, gamepad_status_t *const out)
|
|||
} else {
|
||||
// If the center button is pressed
|
||||
logic->gamepad.center = 1;
|
||||
logic->gamepad.cross = 0;
|
||||
releasing = 0;
|
||||
gettimeofday(&press_time, NULL);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue