Fix key input function continuing on button releases
This commit is contained in:
parent
121c93ba11
commit
76997590c7
@ -4,7 +4,8 @@ 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) & pad_state)
|
||||
return ~pad_state;
|
||||
pad_state_old = pad_state;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user