src/core/linux/SDL_udev.c
changeset 9454 bdc0c1dda0a4
parent 9276 2b2cfda26085
child 9616 eb2a8d9cfb74
equal deleted inserted replaced
9453:49a34578d9e7 9454:bdc0c1dda0a4
   348             ; /* ID_INPUT_TOUCHPAD */
   348             ; /* ID_INPUT_TOUCHPAD */
   349         } else if (test_bit(BTN_MOUSE, bitmask_key)) {
   349         } else if (test_bit(BTN_MOUSE, bitmask_key)) {
   350             devclass |= SDL_UDEV_DEVICE_MOUSE; /* ID_INPUT_MOUSE */
   350             devclass |= SDL_UDEV_DEVICE_MOUSE; /* ID_INPUT_MOUSE */
   351         } else if (test_bit(BTN_TOUCH, bitmask_key)) {
   351         } else if (test_bit(BTN_TOUCH, bitmask_key)) {
   352             ; /* ID_INPUT_TOUCHSCREEN */
   352             ; /* ID_INPUT_TOUCHSCREEN */
   353         } else if (test_bit(BTN_TRIGGER, bitmask_key) ||
   353         }
   354                  test_bit(BTN_A, bitmask_key) ||
   354 
   355                  test_bit(BTN_1, bitmask_key) ||
   355         if (test_bit(BTN_TRIGGER, bitmask_key) ||
   356                  test_bit(ABS_RX, bitmask_abs) ||
   356             test_bit(BTN_A, bitmask_key) ||
   357                  test_bit(ABS_RY, bitmask_abs) ||
   357             test_bit(BTN_1, bitmask_key) ||
   358                  test_bit(ABS_RZ, bitmask_abs) ||
   358             test_bit(ABS_RX, bitmask_abs) ||
   359                  test_bit(ABS_THROTTLE, bitmask_abs) ||
   359             test_bit(ABS_RY, bitmask_abs) ||
   360                  test_bit(ABS_RUDDER, bitmask_abs) ||
   360             test_bit(ABS_RZ, bitmask_abs) ||
   361                  test_bit(ABS_WHEEL, bitmask_abs) ||
   361             test_bit(ABS_THROTTLE, bitmask_abs) ||
   362                  test_bit(ABS_GAS, bitmask_abs) ||
   362             test_bit(ABS_RUDDER, bitmask_abs) ||
   363                  test_bit(ABS_BRAKE, bitmask_abs)) {
   363             test_bit(ABS_WHEEL, bitmask_abs) ||
       
   364             test_bit(ABS_GAS, bitmask_abs) ||
       
   365             test_bit(ABS_BRAKE, bitmask_abs)) {
   364             devclass |= SDL_UDEV_DEVICE_JOYSTICK; /* ID_INPUT_JOYSTICK */
   366             devclass |= SDL_UDEV_DEVICE_JOYSTICK; /* ID_INPUT_JOYSTICK */
   365         }
   367         }
   366     }
   368     }
   367 
   369 
   368     if (test_bit(EV_REL, bitmask_ev) &&
   370     if (test_bit(EV_REL, bitmask_ev) &&