src/joystick/linux/SDL_sysjoystick.c
changeset 3079 cfc8b35ad6b1
parent 3022 db20dde98dd3
child 3089 0ea7b6bb4054
--- a/src/joystick/linux/SDL_sysjoystick.c	Thu Feb 19 06:49:59 2009 +0000
+++ b/src/joystick/linux/SDL_sysjoystick.c	Sat Feb 21 18:02:55 2009 +0000
@@ -377,11 +377,11 @@
         (ioctl(fd, EVIOCGBIT(EV_ABS, sizeof(absbit)), absbit) < 0)) {
         return (0);
     }
+
     if (!(test_bit(EV_KEY, evbit) && test_bit(EV_ABS, evbit) &&
-          test_bit(ABS_X, absbit) && test_bit(ABS_Y, absbit) &&
-          (test_bit(BTN_TRIGGER, keybit) || test_bit(BTN_A, keybit)
-           || test_bit(BTN_1, keybit))))
+          test_bit(ABS_X, absbit) && test_bit(ABS_Y, absbit))) {
         return 0;
+    }
     return (1);
 }