| | |
| | | /* |
| | | Simple DirectMedia Layer |
| | | Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org> |
| | | Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org> |
| | | |
| | | This software is provided 'as-is', without any express or implied |
| | | warranty. In no event will the authors be held liable for any damages |
| | |
| | | typedef struct SDL_Touch |
| | | { |
| | | SDL_TouchID id; |
| | | SDL_TouchDeviceType type; |
| | | int num_fingers; |
| | | int max_fingers; |
| | | SDL_Finger** fingers; |
| | |
| | | extern int SDL_TouchInit(void); |
| | | |
| | | /* Add a touch, returning the index of the touch, or -1 if there was an error. */ |
| | | extern int SDL_AddTouch(SDL_TouchID id, const char *name); |
| | | extern int SDL_AddTouch(SDL_TouchID id, SDL_TouchDeviceType type, const char *name); |
| | | |
| | | /* Get the touch with a given id */ |
| | | extern SDL_Touch *SDL_GetTouch(SDL_TouchID id); |
| | | |
| | | /* Send a touch down/up event for a touch */ |
| | | extern int SDL_SendTouch(SDL_TouchID id, SDL_FingerID fingerid, |
| | | extern int SDL_SendTouch(SDL_TouchID id, SDL_FingerID fingerid, SDL_Window * window, |
| | | SDL_bool down, float x, float y, float pressure); |
| | | |
| | | /* Send a touch motion event for a touch */ |
| | | extern int SDL_SendTouchMotion(SDL_TouchID id, SDL_FingerID fingerid, |
| | | extern int SDL_SendTouchMotion(SDL_TouchID id, SDL_FingerID fingerid, SDL_Window * window, |
| | | float x, float y, float pressure); |
| | | |
| | | /* Remove a touch */ |