Go to the documentation of this file.
21 #include "../../SDL_internal.h"
23 #if SDL_VIDEO_DRIVER_ANDROID
25 #include <android/log.h>
31 #include "../../events/SDL_mouse_c.h"
32 #include "../../events/SDL_touch_c.h"
33 #include "../../core/android/SDL_android.h"
38 #define ACTION_CANCEL 3
39 #define ACTION_OUTSIDE 4
40 #define ACTION_POINTER_DOWN 5
41 #define ACTION_POINTER_UP 6
65 SDL_Log(
"error: can't add touch %s, %d", __FILE__, __LINE__);
71 case ACTION_POINTER_DOWN:
80 case ACTION_POINTER_UP:
void Android_OnTouch(SDL_Window *window, int touch_device_id_in, int pointer_finger_id_in, int action, float x, float y, float p)
int SDL_SendTouch(SDL_TouchID id, SDL_FingerID fingerid, SDL_bool down, float x, float y, float pressure)
int SDL_SendTouchMotion(SDL_TouchID id, SDL_FingerID fingerid, float x, float y, float pressure)
The type used to identify a window.
int SDL_AddTouch(SDL_TouchID touchID, SDL_TouchDeviceType type, const char *name)
GLint GLint GLint GLint GLint x
EGLSurface EGLNativeWindowType * window
void Android_QuitTouch(void)
GLint GLint GLint GLint GLint GLint y
void Android_InitTouch(void)
void Android_JNI_InitTouch(void)