Fixed constness of joystick data.

This commit is contained in:
Camilla Berglund
2013-06-04 18:20:38 +02:00
parent 179d90956a
commit 180a4ee640
7 changed files with 14 additions and 14 deletions
+2 -2
View File
@@ -241,7 +241,7 @@ int _glfwPlatformJoystickPresent(int joy)
return _glfw.x11.joystick[joy].present;
}
float* _glfwPlatformGetJoystickAxes(int joy, int* count)
const float* _glfwPlatformGetJoystickAxes(int joy, int* count)
{
pollJoystickEvents();
@@ -252,7 +252,7 @@ float* _glfwPlatformGetJoystickAxes(int joy, int* count)
return _glfw.x11.joystick[joy].axes;
}
unsigned char* _glfwPlatformGetJoystickButtons(int joy, int* count)
const unsigned char* _glfwPlatformGetJoystickButtons(int joy, int* count)
{
pollJoystickEvents();