whoops...

This commit is contained in:
Denis 2023-11-26 22:32:44 +01:00
parent 696376968a
commit 94a0cb90f2
No known key found for this signature in database
GPG key ID: DD9B63F805CF5C03

View file

@ -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);
}