mirror of https://github.com/encounter/SDL.git
Fixed style
This commit is contained in:
parent
34634082ff
commit
d797582376
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue