You've already forked HackerSM64
mirror of
https://github.com/HackerN64/HackerSM64.git
synced 2026-01-21 10:35:32 -08:00
Fix status poll timer
This commit is contained in:
@@ -376,11 +376,11 @@ void handle_input(OSMesg* mesg) {
|
||||
|
||||
if (gContStatusPolling) {
|
||||
// Only poll controller status about twice per second.
|
||||
if (gContStatusPollTimer > CONT_STATUS_POLLING_TIME) {
|
||||
gContStatusPollTimer = 0;
|
||||
if (gContStatusPollTimer == 0) {
|
||||
gContStatusPollTimer = CONT_STATUS_POLLING_TIME;
|
||||
poll_controller_statuses(mesg);
|
||||
} else {
|
||||
gContStatusPollTimer++;
|
||||
gContStatusPollTimer--;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user