set the correct flag to avoid cycling

This commit is contained in:
Denis 2023-11-26 22:34:52 +01:00
parent 94a0cb90f2
commit 31968f654d
No known key found for this signature in database
GPG key ID: DD9B63F805CF5C03

View file

@ -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 {