From 049ef9a35b4757fba35480b4152177f7f15eb170 Mon Sep 17 00:00:00 2001 From: Philipp Wiesemann Date: Wed, 8 Apr 2015 22:24:33 +0200 Subject: [PATCH] Android: Fixed calling a getter method twice. --- android-project/src/org/libsdl/app/SDLActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android-project/src/org/libsdl/app/SDLActivity.java b/android-project/src/org/libsdl/app/SDLActivity.java index 6c82b76fc..3c154da95 100644 --- a/android-project/src/org/libsdl/app/SDLActivity.java +++ b/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);