mirror of
https://github.com/godotengine/godot.git
synced 2024-11-23 12:43:43 +00:00
issue-37239 add relaxation to conditions in the joystick check routine for being identified as joystick
This commit is contained in:
parent
20edf69f96
commit
36293f4256
@ -340,7 +340,10 @@ void JoypadLinux::open_joypad(const char *p_path) {
|
||||
(test_bit(ABS_X, absbit) || test_bit(ABS_Y, absbit) || test_bit(ABS_HAT0X, absbit) ||
|
||||
test_bit(ABS_GAS, absbit) || test_bit(ABS_RUDDER, absbit)) &&
|
||||
(test_bit(BTN_A, keybit) || test_bit(BTN_THUMBL, keybit) ||
|
||||
test_bit(BTN_TRIGGER, keybit) || test_bit(BTN_1, keybit)))) {
|
||||
test_bit(BTN_TRIGGER, keybit) || test_bit(BTN_1, keybit))) &&
|
||||
!(test_bit(EV_ABS, evbit) &&
|
||||
test_bit(ABS_X, absbit) && test_bit(ABS_Y, absbit) &&
|
||||
test_bit(ABS_RX, absbit) && test_bit(ABS_RY, absbit))) {
|
||||
close(fd);
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user