Skip to content

Commit

Permalink
Android: Fixed calling a getter method twice.
Browse files Browse the repository at this point in the history
  • Loading branch information
philippwiesemann committed Apr 8, 2015
1 parent 458b94d commit 049ef9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion android-project/src/org/libsdl/app/SDLActivity.java
Expand Up @@ -1536,7 +1536,7 @@ public boolean onGenericMotion(View v, MotionEvent event) {

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);
Expand Down

0 comments on commit 049ef9a

Please sign in to comment.