1
0
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:
Raphael Assenat 2015-10-27 22:10:30 -04:00
parent 8bd2eb1710
commit cb9be3f604

2
main.c
View File

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