diff --git a/source/hid.c b/source/hid.c index 3247f4a..b6471fb 100644 --- a/source/hid.c +++ b/source/hid.c @@ -4,7 +4,12 @@ u32 InputWait() { u32 pad_state_old = HID_STATE; while (true) { u32 pad_state = HID_STATE; - if (pad_state ^ pad_state_old) + if (pad_state == pad_state_old) + continue; + // make sure the key is pressed + u32 t_pressed = 0; + for(; (t_pressed < 0x13000) && (pad_state == HID_STATE); t_pressed++); + if (t_pressed >= 0x13000) return ~pad_state; } }