mirror of
https://github.com/glfw/glfw.git
synced 2025-04-07 06:25:05 +00:00
Clarified result comparison.
This commit is contained in:
parent
53245d754e
commit
54fceaaf64
1 changed files with 1 additions and 1 deletions
|
@ -127,7 +127,7 @@ static void pollJoystickEvents(void)
|
|||
if (errno == ENODEV)
|
||||
_glfwLibrary.X11.joystick[i].present = GL_FALSE;
|
||||
|
||||
if (result <= 0)
|
||||
if (result < sizeof(e))
|
||||
break;
|
||||
|
||||
// We don't care if it's an init event or not
|
||||
|
|
Loading…
Add table
Reference in a new issue