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
@@ -48,7 +48,7 @@ GLFWAPI int glfwJoystickPresent(int joy)
return _glfwPlatformJoystickPresent(joy);
}
GLFWAPI float* glfwGetJoystickAxes(int joy, int* count)
GLFWAPI const float* glfwGetJoystickAxes(int joy, int* count)
{
*count = 0;
@@ -63,7 +63,7 @@ GLFWAPI float* glfwGetJoystickAxes(int joy, int* count)
return _glfwPlatformGetJoystickAxes(joy, count);
}
GLFWAPI unsigned char* glfwGetJoystickButtons(int joy, int* count)
GLFWAPI const unsigned char* glfwGetJoystickButtons(int joy, int* count)
{
*count = 0;