set the correct flag to avoid cycling
This commit is contained in:
parent
94a0cb90f2
commit
31968f654d
1 changed files with 1 additions and 0 deletions
1
logic.c
1
logic.c
|
|
@ -136,6 +136,7 @@ int logic_copy_gamepad_status(logic_t *const logic, gamepad_status_t *const out)
|
|||
if (elapsed_time >= PRESS_TIME_CROSS_BUTTON_MS) {
|
||||
logic->gamepad.center = 1;
|
||||
logic->gamepad.cross = 0;
|
||||
releasing = 1;
|
||||
press_time = now;
|
||||
}
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue