Browse Source

Android: Fixed ignoring a return value while handling motion events.

This should not have caused problems yet because the return value was identical.
Philipp Wiesemann 9 năm trước cách đây
mục cha
commit
88f519372f
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  1. 1 2
      android-project/src/org/libsdl/app/SDLActivity.java

+ 1 - 2
android-project/src/org/libsdl/app/SDLActivity.java

@@ -1641,8 +1641,7 @@ class SDLGenericMotionListener_API12 implements View.OnGenericMotionListener {
             case InputDevice.SOURCE_JOYSTICK:
             case InputDevice.SOURCE_GAMEPAD:
             case InputDevice.SOURCE_DPAD:
-                SDLActivity.handleJoystickMotionEvent(event);
-                return true;
+                return SDLActivity.handleJoystickMotionEvent(event);
 
             case InputDevice.SOURCE_MOUSE:
                 action = event.getActionMasked();