mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-20 22:16:49 +01:00
Fixed detecting the NVIDIA controller which shows up as both a mouse and a game controller
This commit is contained in:
parent
41961e4f31
commit
3e4a8ce1c2
@ -350,7 +350,9 @@ guess_device_class(struct udev_device *dev)
|
|||||||
devclass |= SDL_UDEV_DEVICE_MOUSE; /* ID_INPUT_MOUSE */
|
devclass |= SDL_UDEV_DEVICE_MOUSE; /* ID_INPUT_MOUSE */
|
||||||
} else if (test_bit(BTN_TOUCH, bitmask_key)) {
|
} else if (test_bit(BTN_TOUCH, bitmask_key)) {
|
||||||
; /* ID_INPUT_TOUCHSCREEN */
|
; /* ID_INPUT_TOUCHSCREEN */
|
||||||
} else if (test_bit(BTN_TRIGGER, bitmask_key) ||
|
}
|
||||||
|
|
||||||
|
if (test_bit(BTN_TRIGGER, bitmask_key) ||
|
||||||
test_bit(BTN_A, bitmask_key) ||
|
test_bit(BTN_A, bitmask_key) ||
|
||||||
test_bit(BTN_1, bitmask_key) ||
|
test_bit(BTN_1, bitmask_key) ||
|
||||||
test_bit(ABS_RX, bitmask_abs) ||
|
test_bit(ABS_RX, bitmask_abs) ||
|
||||||
|
Loading…
Reference in New Issue
Block a user