mirror of
https://github.com/glfw/glfw.git
synced 2024-11-11 13:03:52 +00:00
Linux: Fix joystick without buttons being ignored
Joysticks in Linux without buttons were ignored by device enumeration.
Remove the mandatory button attribute from detection.
Fixes #2042
Closes #2043
(cherry picked from commit c424fe5589
)
This commit is contained in:
parent
4affd2207c
commit
388d0cf7c2
@ -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