Explorar o código

Android: Fixed calling a getter method twice.

Philipp Wiesemann %!s(int64=11) %!d(string=hai) anos
pai
achega
049ef9a35b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      android-project/src/org/libsdl/app/SDLActivity.java

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

@@ -1536,7 +1536,7 @@ class SDLGenericMotionListener_API12 implements View.OnGenericMotionListener {
 
             case InputDevice.SOURCE_MOUSE:
                 action = event.getActionMasked();
-                switch(event.getActionMasked()) {
+                switch (action) {
                     case MotionEvent.ACTION_SCROLL:
                         x = event.getAxisValue(MotionEvent.AXIS_HSCROLL, 0);
                         y = event.getAxisValue(MotionEvent.AXIS_VSCROLL, 0);