Go to the documentation of this file.
41 typedef Sint64 SDL_TouchID;
42 typedef Sint64 SDL_FingerID;
46 SDL_TOUCH_DEVICE_INVALID = -1,
47 SDL_TOUCH_DEVICE_DIRECT,
48 SDL_TOUCH_DEVICE_INDIRECT_ABSOLUTE,
49 SDL_TOUCH_DEVICE_INDIRECT_RELATIVE
50 } SDL_TouchDeviceType;
61 #define SDL_TOUCH_MOUSEID ((Uint32)-1)
64 #define SDL_MOUSE_TOUCHID ((Sint64)-1)
DECLSPEC SDL_Finger *SDLCALL SDL_GetTouchFinger(SDL_TouchID touchID, int index)
Get the finger object of the given touch, with the given index.
Definition: SDL_touch.h:53
DECLSPEC SDL_TouchDeviceType SDLCALL SDL_GetTouchDeviceType(SDL_TouchID touchID)
Get the type of the given touch device.
DECLSPEC int SDLCALL SDL_GetNumTouchDevices(void)
Get the number of registered touch devices.
DECLSPEC int SDLCALL SDL_GetNumTouchFingers(SDL_TouchID touchID)
Get the number of active fingers for a given touch device.
DECLSPEC SDL_TouchID SDLCALL SDL_GetTouchDevice(int index)
Get the touch ID with the given index, or 0 if the index is invalid.