Fix the software keyboard

Fixes #501
This commit is contained in:
d0k3 2019-07-01 23:03:35 +02:00
parent e7e800d44f
commit 3cbbd53850

View File

@ -145,7 +145,7 @@ u32 InputWait(u32 timeout_sec) {
do { do {
u32 newpad = HID_ReadState(); u32 newpad = HID_ReadState();
if (!(newpad & BUTTON_ANY)) { // no buttons pressed, check for I/O changes instead if (!(newpad & ~(SHELL_OPEN|SHELL_CLOSED))) { // no buttons pressed, check for I/O changes instead
u32 state = CART_STATE; u32 state = CART_STATE;
if (state != oldcart) if (state != oldcart)
return state ? CART_INSERT : CART_EJECT; return state ? CART_INSERT : CART_EJECT;