--- a/android-project/src/org/libsdl/app/SDLActivity.java Wed Apr 01 18:22:42 2015 -0700
+++ b/android-project/src/org/libsdl/app/SDLActivity.java Thu Apr 02 00:55:45 2015 +0200
@@ -1140,7 +1140,7 @@
mouseButton = 1; // For Android==12 all mouse buttons are the left button
} else {
try {
- mouseButton = event.getClass().getMethod("getButtonState").invoke(event);
+ mouseButton = (Integer) event.getClass().getMethod("getButtonState").invoke(event);
} catch(Exception e) {
mouseButton = 1; // oh well.
}