Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Android: Fixed a comment.
- Loading branch information
Showing
with
1 addition
and
1 deletion.
-
+1
−1
android-project/src/org/libsdl/app/SDLActivity.java
|
@@ -1214,7 +1214,7 @@ public boolean onTouch(View v, MotionEvent event) { |
|
|
// !!! FIXME: dump this SDK check after 2.0.4 ships and require API14. |
|
|
if (event.getSource() == InputDevice.SOURCE_MOUSE && SDLActivity.mSeparateMouseAndTouch) { |
|
|
if (Build.VERSION.SDK_INT < 14) { |
|
|
mouseButton = 1; // For Android==12 all mouse buttons are the left button |
|
|
mouseButton = 1; // all mouse buttons are the left button |
|
|
} else { |
|
|
try { |
|
|
mouseButton = (Integer) event.getClass().getMethod("getButtonState").invoke(event); |
|
|