Renamed glfwGetJoystickPos to glfwGetJoystickAxes.

This commit is contained in:
Camilla Berglund
2012-08-29 18:31:12 +02:00
parent 38e4cc3dad
commit 2502e4d6f3
8 changed files with 21 additions and 20 deletions
+2 -2
View File
@@ -260,7 +260,7 @@ int _glfwPlatformGetJoystickParam(int joy, int param)
// Get joystick axis positions
//========================================================================
int _glfwPlatformGetJoystickPos(int joy, float* pos, int numAxes)
int _glfwPlatformGetJoystickAxes(int joy, float* axes, int numAxes)
{
int i;
@@ -273,7 +273,7 @@ int _glfwPlatformGetJoystickPos(int joy, float* pos, int numAxes)
numAxes = _glfwLibrary.X11.joystick[joy].numAxes;
for (i = 0; i < numAxes; i++)
pos[i] = _glfwLibrary.X11.joystick[joy].axis[i];
axes[i] = _glfwLibrary.X11.joystick[joy].axis[i];
return numAxes;
}