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
master
Björn Hempel ago%!(EXTRA string=3 years) committed by Camilla Löwy
parent c50d53160f
commit c424fe5589
  1. 2
      src/linux_joystick.c

@ -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…
Cancel
Save