mirror of
https://github.com/yawut/SDL.git
synced 2026-04-24 23:37:09 -05:00
Cast the result of calling getButtonState to an Integer
This commit is contained in:
parent
a3336de9e1
commit
a00125c9be
|
|
@ -1140,7 +1140,7 @@ class SDLSurface extends SurfaceView implements SurfaceHolder.Callback,
|
|||
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.
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user