mirror of
https://github.com/raphnet/gc_n64_usb-v3
synced 2024-12-22 07:18:52 -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);
|
pad->getReport(&pad_data);
|
||||||
usbpad_update(&pad_data);
|
usbpad_update(&pad_data);
|
||||||
state = STATE_WAIT_INTERRUPT_READY;
|
state = STATE_WAIT_INTERRUPT_READY;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
/* Just make sure the gamepad state holds valid data
|
/* Just make sure the gamepad state holds valid data
|
||||||
* to appear inactive (no buttons and axes in neutral) */
|
* to appear inactive (no buttons and axes in neutral) */
|
||||||
usbpad_update(NULL);
|
usbpad_update(NULL);
|
||||||
}
|
}
|
||||||
|
state = STATE_WAIT_POLLTIME;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case STATE_WAIT_INTERRUPT_READY:
|
case STATE_WAIT_INTERRUPT_READY:
|
||||||
|
Loading…
Reference in New Issue
Block a user