Android: fix joystick saving incorrect y-coordinate
This commit is contained in:
1 parent
22b5d89bf1
commit
001afae420
1 file changed
+1
-1
+1
-1
@@ -231,7 +231,7 @@ public final class InputOverlay extends SurfaceView implements OnTouchListener
|
||||
case MotionEvent.ACTION_POINTER_UP:
|
||||
if (mJoystickBeingConfigured != null)
|
||||
{
|
||||
saveControlPosition(mJoystickBeingConfigured.getSharedPrefsId(), mJoystickBeingConfigured.getBounds().left, mJoystickBeingConfigured.getBounds().right);
|
||||
saveControlPosition(mJoystickBeingConfigured.getSharedPrefsId(), mJoystickBeingConfigured.getBounds().left, mJoystickBeingConfigured.getBounds().top);
|
||||
mJoystickBeingConfigured = null;
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in new issue
Block a user