Skip to content

Commit

Permalink
Android: fix coordinates for Surface.ROTATION_180
Browse files Browse the repository at this point in the history
  • Loading branch information
1bsyl committed Jun 11, 2019
1 parent 45a3dd1 commit 4392c6f
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -1971,8 +1971,8 @@ public void onSensorChanged(SensorEvent event) {
newOrientation = SDLActivity.SDL_ORIENTATION_LANDSCAPE_FLIPPED;
break;
case Surface.ROTATION_180:
x = -event.values[1];
y = -event.values[0];
x = -event.values[0];
y = -event.values[1];
newOrientation = SDLActivity.SDL_ORIENTATION_PORTRAIT_FLIPPED;
break;
default:
Expand Down

0 comments on commit 4392c6f

Please sign in to comment.