From e02b278db1739b7de28a5412c084e986e9225e06 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Fri, 16 May 2014 11:27:30 +0200 Subject: [PATCH] Linux joystick cleanup. --- src/linux_joystick.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/linux_joystick.c b/src/linux_joystick.c index 36de62dc..c0c4b3d7 100644 --- a/src/linux_joystick.c +++ b/src/linux_joystick.c @@ -211,8 +211,6 @@ void _glfwTerminateJoysticks(void) free(_glfw.linux_js[i].axes); free(_glfw.linux_js[i].buttons); free(_glfw.linux_js[i].name); - - _glfw.linux_js[i].present = GL_FALSE; } } #endif // __linux__ @@ -234,9 +232,6 @@ const float* _glfwPlatformGetJoystickAxes(int joy, int* count) { pollJoystickEvents(); - if (!_glfw.linux_js[joy].present) - return NULL; - *count = _glfw.linux_js[joy].axisCount; return _glfw.linux_js[joy].axes; } @@ -245,9 +240,6 @@ const unsigned char* _glfwPlatformGetJoystickButtons(int joy, int* count) { pollJoystickEvents(); - if (!_glfw.linux_js[joy].present) - return NULL; - *count = _glfw.linux_js[joy].buttonCount; return _glfw.linux_js[joy].buttons; }