forget to wait on user input on hidWaitMask
This commit is contained in:
1 parent
acb43b67db
commit
4907afd9f3
1 file changed
+4
@@ -83,6 +83,10 @@ Inputs *hidRead(){
|
||||
|
||||
Inputs *hidWaitMask(u32 mask){
|
||||
Inputs *in = hidRead();
|
||||
|
||||
while (in->buttons)
|
||||
hidRead();
|
||||
|
||||
while ((in->buttons & mask) == 0){
|
||||
in = hidRead();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user