Formatting pass (no code changes).

This commit is contained in:
Camilla Berglund
2010-09-08 14:45:52 +02:00
parent a0351391d1
commit 9e4137c0a9
8 changed files with 345 additions and 345 deletions
+15 -15
View File
@@ -39,12 +39,12 @@
// Determine joystick capabilities
//========================================================================
GLFWAPI int glfwGetJoystickParam( int joy, int param )
GLFWAPI int glfwGetJoystickParam(int joy, int param)
{
if( !_glfwInitialized )
if (!_glfwInitialized)
return 0;
return _glfwPlatformGetJoystickParam( joy, param );
return _glfwPlatformGetJoystickParam(joy, param);
}
@@ -52,18 +52,18 @@ GLFWAPI int glfwGetJoystickParam( int joy, int param )
// Get joystick axis positions
//========================================================================
GLFWAPI int glfwGetJoystickPos( int joy, float *pos, int numaxes )
GLFWAPI int glfwGetJoystickPos(int joy, float *pos, int numaxes)
{
int i;
if( !_glfwInitialized )
if (!_glfwInitialized)
return 0;
// Clear positions
for( i = 0; i < numaxes; i++ )
pos[ i ] = 0.0f;
for (i = 0; i < numaxes; i++)
pos[i] = 0.0f;
return _glfwPlatformGetJoystickPos( joy, pos, numaxes );
return _glfwPlatformGetJoystickPos(joy, pos, numaxes);
}
@@ -71,19 +71,19 @@ GLFWAPI int glfwGetJoystickPos( int joy, float *pos, int numaxes )
// Get joystick button states
//========================================================================
GLFWAPI int glfwGetJoystickButtons( int joy,
unsigned char *buttons,
int numbuttons )
GLFWAPI int glfwGetJoystickButtons(int joy,
unsigned char *buttons,
int numbuttons)
{
int i;
if( !_glfwInitialized )
if (!_glfwInitialized)
return 0;
// Clear button states
for( i = 0; i < numbuttons; i++ )
buttons[ i ] = GLFW_RELEASE;
for (i = 0; i < numbuttons; i++)
buttons[i] = GLFW_RELEASE;
return _glfwPlatformGetJoystickButtons( joy, buttons, numbuttons );
return _glfwPlatformGetJoystickButtons(joy, buttons, numbuttons);
}