Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Removed not needed block from Java file.
Browse files Browse the repository at this point in the history
  • Loading branch information
philippwiesemann committed May 5, 2013
1 parent f599646 commit 7f60a79
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions android-project/src/org/libsdl/app/SDLActivity.java
Expand Up @@ -622,11 +622,10 @@ else if (event.getAction() == KeyEvent.ACTION_UP) {
// Touch events
@Override
public boolean onTouch(View v, MotionEvent event) {
{
final int touchDevId = event.getDeviceId();
final int pointerCount = event.getPointerCount();
// touchId, pointerId, action, x, y, pressure
int actionPointerIndex = (event.getAction() & MotionEvent.ACTION_POINTER_ID_MASK) >> MotionEvent. ACTION_POINTER_ID_SHIFT; /* API 8: event.getActionIndex(); */
int actionPointerIndex = (event.getAction() & MotionEvent.ACTION_POINTER_ID_MASK) >> MotionEvent.ACTION_POINTER_ID_SHIFT; /* API 8: event.getActionIndex(); */
int pointerFingerId = event.getPointerId(actionPointerIndex);
int action = (event.getAction() & MotionEvent.ACTION_MASK); /* API 8: event.getActionMasked(); */

Expand All @@ -647,7 +646,6 @@ public boolean onTouch(View v, MotionEvent event) {
} else {
SDLActivity.onNativeTouch(touchDevId, pointerFingerId, action, x, y, p);
}
}
return true;
}

Expand Down

0 comments on commit 7f60a79

Please sign in to comment.