Android: Fixed calling a getter method twice.
This commit is contained in:
parent
742fdb475d
commit
0f74f5f039
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue