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
1 changed files with 2 additions and 0 deletions

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: