mirror of
https://github.com/suchmememanyskill/TegraExplorer.git
synced 2024-11-09 21:51:48 +00:00
forget to wait on user input on hidWaitMask
This commit is contained in:
parent
acb43b67db
commit
4907afd9f3
1 changed files with 4 additions and 0 deletions
|
@ -83,6 +83,10 @@ Inputs *hidRead(){
|
||||||
|
|
||||||
Inputs *hidWaitMask(u32 mask){
|
Inputs *hidWaitMask(u32 mask){
|
||||||
Inputs *in = hidRead();
|
Inputs *in = hidRead();
|
||||||
|
|
||||||
|
while (in->buttons)
|
||||||
|
hidRead();
|
||||||
|
|
||||||
while ((in->buttons & mask) == 0){
|
while ((in->buttons & mask) == 0){
|
||||||
in = hidRead();
|
in = hidRead();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue