From ce0eec34e7dc421f1af4d1c0f5f78b9be75f7f3e Mon Sep 17 00:00:00 2001 From: Yuri Kunde Schlesner Date: Fri, 15 May 2015 19:22:53 -0300 Subject: [PATCH] Make WaitInput wait for a press, not a release. --- source/hid.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/hid.c b/source/hid.c index e0f5ffa..8452f25 100644 --- a/source/hid.c +++ b/source/hid.c @@ -1,11 +1,11 @@ #include "hid.h" u32 InputWait(void) { - u32 pad_state_old = HID_STATE; + u32 pad_state_old = ~HID_STATE; while (true) { - u32 pad_state = HID_STATE; + u32 pad_state = ~HID_STATE; if ((pad_state ^ pad_state_old) & pad_state) - return ~pad_state; + return pad_state; pad_state_old = pad_state; } }