mirror of
https://github.com/glfw/glfw.git
synced 2025-06-14 19:52:14 +00:00
#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:
parent
df8d7bc892
commit
5d95fa38f3
@ -157,7 +157,7 @@ static GLFWbool openJoystickDevice(const char* path)
|
||||
}
|
||||
|
||||
// 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);
|
||||
return GLFW_FALSE;
|
||||
|
Loading…
Reference in New Issue
Block a user