22 #include "../../SDL_internal.h"
24 #if SDL_VIDEO_DRIVER_ANDROID
29 #include "../../events/SDL_mouse_c.h"
31 #include "../../core/android/SDL_android.h"
35 #define ACTION_HOVER_MOVE 7
36 #define ACTION_SCROLL 8
37 #define BUTTON_PRIMARY 1
38 #define BUTTON_SECONDARY 2
39 #define BUTTON_TERTIARY 4
42 static Uint8 SDLButton;
52 if (androidButton == BUTTON_SECONDARY) {
54 }
else if (androidButton == BUTTON_TERTIARY) {
68 case ACTION_HOVER_MOVE:
GLint GLint GLint GLint GLint x
GLint GLint GLint GLint GLint GLint y
int SDL_SendMouseMotion(SDL_Window *window, SDL_MouseID mouseID, int relative, int x, int y)
uint8_t Uint8
An unsigned 8-bit integer type.
SDL_Window * Android_Window
#define SDL_BUTTON_MIDDLE
void Android_OnMouse(int button, int action, float x, float y)
int SDL_SendMouseWheel(SDL_Window *window, SDL_MouseID mouseID, int x, int y, SDL_MouseWheelDirection direction)
int SDL_SendMouseButton(SDL_Window *window, SDL_MouseID mouseID, Uint8 state, Uint8 button)