Fix blocking
This commit is contained in:
parent
c6ce7d766c
commit
8b6f34b08f
@ -110,7 +110,7 @@ int readButtons() {
|
|||||||
int getBtn() {
|
int getBtn() {
|
||||||
while (1) {
|
while (1) {
|
||||||
int key = readButtons();
|
int key = readButtons();
|
||||||
if (!isBlocking) {
|
if (isBlocking == 0) {
|
||||||
return key;
|
return key;
|
||||||
}
|
}
|
||||||
if (key != -1) {
|
if (key != -1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user