small fixes

This commit is contained in:
Such Meme, Many Skill committed 2020-05-03 00:30:05 +02:00
1 parent 4907afd9f3
commit 6c2d0cf162
2 files changed
+6 -3

No files matched your search

+4 -3
View File
@@ -84,12 +84,13 @@ Inputs *hidRead(){
Inputs *hidWaitMask(u32 mask){
Inputs *in = hidRead();
while (in->buttons)
while (in->buttons & mask)
hidRead();
while ((in->buttons & mask) == 0){
in = hidRead();
while (!(in->buttons & mask)){
hidRead();
}
return in;
}