mirror of
https://github.com/glfw/glfw.git
synced 2026-09-23 09:08:58 +00:00
Formatting pass (no code changes).
This commit is contained in:
+15
-15
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user