From 4907afd9f3be05e30bb5ce64ae5a2041a68533c1 Mon Sep 17 00:00:00 2001 From: "Such Meme, Many Skill" Date: Sat, 2 May 2020 23:51:16 +0200 Subject: [PATCH] forget to wait on user input on hidWaitMask --- source/hid/hid.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/hid/hid.c b/source/hid/hid.c index 19104cf..4434e0c 100644 --- a/source/hid/hid.c +++ b/source/hid/hid.c @@ -83,6 +83,10 @@ Inputs *hidRead(){ Inputs *hidWaitMask(u32 mask){ Inputs *in = hidRead(); + + while (in->buttons) + hidRead(); + while ((in->buttons & mask) == 0){ in = hidRead(); }