Navigation Menu

Skip to content

Commit

Permalink
Fixed style
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jun 15, 2015
1 parent 3463408 commit d797582
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/joystick/android/SDL_sysjoystick.c
Expand Up @@ -518,12 +518,9 @@ SDL_SYS_JoystickUpdate(SDL_Joystick * joystick)
if (item->joystick) {
if (Android_JNI_GetAccelerometerValues(values)) {
for ( i = 0; i < 3; i++ ) {
if (values[i] > 1.0f)
{
if (values[i] > 1.0f) {
values[i] = 1.0f;
}
else if (values[i] < -1.0f)
{
} else if (values[i] < -1.0f) {
values[i] = -1.0f;
}

Expand Down

0 comments on commit d797582

Please sign in to comment.