mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-14 22:05:59 +00:00
Android: Added mouse initialization to reset state.
If the app is launched again then the shared object may be reused (on Android).
This commit is contained in:
@@ -40,9 +40,15 @@
|
||||
#define BUTTON_BACK 8
|
||||
#define BUTTON_FORWARD 16
|
||||
|
||||
void Android_OnMouse( int androidButton, int action, float x, float y) {
|
||||
static Uint8 SDLButton;
|
||||
static Uint8 SDLButton;
|
||||
|
||||
void
|
||||
Android_InitMouse(void)
|
||||
{
|
||||
SDLButton = 0;
|
||||
}
|
||||
|
||||
void Android_OnMouse( int androidButton, int action, float x, float y) {
|
||||
if (!Android_Window) {
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user