Fixed another joystick bug

This commit is contained in:
Rob Pearce 2008-10-23 06:46:18 +00:00
parent c0352b4412
commit ba07d01741
1 changed files with 2 additions and 2 deletions

4
rc.c
View File

@ -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;
} }
/* /*