mirror of
https://github.com/raphnet/gc_n64_usb-v3
synced 2024-12-21 23:08:53 -05:00
Honor the poll rate setting even without a controller present
This commit is contained in:
parent
8bd2eb1710
commit
cb9be3f604
2
main.c
2
main.c
@ -309,12 +309,14 @@ int main(void)
|
||||
pad->getReport(&pad_data);
|
||||
usbpad_update(&pad_data);
|
||||
state = STATE_WAIT_INTERRUPT_READY;
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
/* Just make sure the gamepad state holds valid data
|
||||
* to appear inactive (no buttons and axes in neutral) */
|
||||
usbpad_update(NULL);
|
||||
}
|
||||
state = STATE_WAIT_POLLTIME;
|
||||
break;
|
||||
|
||||
case STATE_WAIT_INTERRUPT_READY:
|
||||
|
Loading…
Reference in New Issue
Block a user