Fixed another joystick bug
This commit is contained in:
parent
c0352b4412
commit
ba07d01741
4
rc.c
4
rc.c
|
@ -7603,9 +7603,9 @@ int joybuttontokey(int buttonnum) {
|
||||||
int joybuttondown(int key) {
|
int joybuttondown(int key) {
|
||||||
int i;
|
int i;
|
||||||
for (i = 0; i < joybuttons; i++) {
|
for (i = 0; i < joybuttons; i++) {
|
||||||
if ((joymap[i] == key) && (joybut[i])) return i;
|
if ((joymap[i] == key) && (joybut[i])) return B_TRUE;
|
||||||
}
|
}
|
||||||
return 0;
|
return B_FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue