#2042 Joystick without buttons are not working

Joysticks in linux without buttons are not working.
Remove the mandatory button attribute from detection.
This commit is contained in:
Björn Hempel 2022-02-06 13:32:10 +01:00 committed by GitHub
parent df8d7bc892
commit 5d95fa38f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -157,7 +157,7 @@ static GLFWbool openJoystickDevice(const char* path)
} }
// Ensure this device supports the events expected of a joystick // Ensure this device supports the events expected of a joystick
if (!isBitSet(EV_KEY, evBits) || !isBitSet(EV_ABS, evBits)) if (!isBitSet(EV_ABS, evBits))
{ {
close(linjs.fd); close(linjs.fd);
return GLFW_FALSE; return GLFW_FALSE;