mirror of
https://github.com/glfw/glfw.git
synced 2026-09-18 22:55:46 +00:00
Fixed constness of joystick data.
This commit is contained in:
@@ -463,7 +463,7 @@ int _glfwPlatformJoystickPresent(int joy)
|
||||
return _glfw.ns.joysticks[joy].present;
|
||||
}
|
||||
|
||||
float* _glfwPlatformGetJoystickAxes(int joy, int* count)
|
||||
const float* _glfwPlatformGetJoystickAxes(int joy, int* count)
|
||||
{
|
||||
_GLFWjoy* joystick = _glfw.ns.joysticks + joy;
|
||||
|
||||
@@ -476,7 +476,7 @@ float* _glfwPlatformGetJoystickAxes(int joy, int* count)
|
||||
return joystick->axes;
|
||||
}
|
||||
|
||||
unsigned char* _glfwPlatformGetJoystickButtons(int joy, int* count)
|
||||
const unsigned char* _glfwPlatformGetJoystickButtons(int joy, int* count)
|
||||
{
|
||||
_GLFWjoy* joystick = _glfw.ns.joysticks + joy;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user