|
SDL
2.0
|
Include dependency graph for SDL_touch_c.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Data Structures | |
| struct | SDL_Touch |
Functions | |
| int | SDL_TouchInit (void) |
| int | SDL_AddTouch (SDL_TouchID id, const char *name) |
| SDL_Touch * | SDL_GetTouch (SDL_TouchID id) |
| 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) |
| void | SDL_DelTouch (SDL_TouchID id) |
| void | SDL_TouchQuit (void) |
| int SDL_AddTouch | ( | SDL_TouchID | id, |
| const char * | name | ||
| ) |
Definition at line 130 of file SDL_touch.c.
References SDL_Touch::fingers, SDL_Touch::id, SDL_Touch::max_fingers, NULL, SDL_Touch::num_fingers, SDL_GestureAddTouch(), SDL_GetTouchIndex(), SDL_malloc, SDL_num_touch, SDL_OutOfMemory, and SDL_realloc.
| void SDL_DelTouch | ( | SDL_TouchID | id | ) |
Definition at line 331 of file SDL_touch.c.
References SDL_Touch::fingers, i, SDL_Touch::max_fingers, SDL_free(), SDL_GetTouch(), SDL_GetTouchIndex(), and SDL_num_touch.
Referenced by SDL_TouchQuit().
| SDL_Touch* SDL_GetTouch | ( | SDL_TouchID | id | ) |
Definition at line 73 of file SDL_touch.c.
References NULL, SDL_GetTouchIndex(), SDL_num_touch, and SDL_SetError.
Referenced by SDL_DelTouch(), SDL_GetNumTouchFingers(), SDL_GetTouchFinger(), SDL_SendTouch(), and SDL_SendTouchMotion().
| int SDL_SendTouch | ( | SDL_TouchID | id, |
| SDL_FingerID | fingerid, | ||
| SDL_bool | down, | ||
| float | x, | ||
| float | y, | ||
| float | pressure | ||
| ) |
Definition at line 216 of file SDL_touch.c.
References SDL_AddFinger(), SDL_DelFinger(), SDL_ENABLE, SDL_FINGERDOWN, SDL_FINGERUP, SDL_GetEventState, SDL_GetFinger(), SDL_GetTouch(), SDL_PushEvent, SDL_Finger::x, and SDL_Finger::y.
Referenced by SDL_SendTouchMotion().
| int SDL_SendTouchMotion | ( | SDL_TouchID | id, |
| SDL_FingerID | fingerid, | ||
| float | x, | ||
| float | y, | ||
| float | pressure | ||
| ) |
Definition at line 278 of file SDL_touch.c.
References SDL_Finger::pressure, SDL_ENABLE, SDL_FINGERMOTION, SDL_GetEventState, SDL_GetFinger(), SDL_GetTouch(), SDL_PushEvent, SDL_SendTouch(), SDL_TRUE, SDL_Finger::x, and SDL_Finger::y.
| int SDL_TouchInit | ( | void | ) |
Definition at line 352 of file SDL_touch.c.
References i, NULL, SDL_assert, SDL_DelTouch(), SDL_free(), and SDL_num_touch.
Referenced by SDL_VideoQuit().