Android: Fixed calling a getter method twice.

This commit is contained in:
Philipp Wiesemann 2015-04-08 22:24:33 +02:00
parent 458b94da5f
commit 049ef9a35b
1 changed files with 1 additions and 1 deletions

View File

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