src/events/SDL_touch_c.h
changeset 12404 eb60e952b13f
parent 11811 5d94cb6b24d3
child 12503 806492103856
equal deleted inserted replaced
12403:a4d730631698 12404:eb60e952b13f
    25 #define SDL_touch_c_h_
    25 #define SDL_touch_c_h_
    26 
    26 
    27 typedef struct SDL_Touch
    27 typedef struct SDL_Touch
    28 {
    28 {
    29     SDL_TouchID id;
    29     SDL_TouchID id;
       
    30     SDL_TouchDeviceType type;
    30     int num_fingers;
    31     int num_fingers;
    31     int max_fingers;
    32     int max_fingers;
    32     SDL_Finger** fingers;
    33     SDL_Finger** fingers;
    33 } SDL_Touch;
    34 } SDL_Touch;
    34 
    35 
    35 
    36 
    36 /* Initialize the touch subsystem */
    37 /* Initialize the touch subsystem */
    37 extern int SDL_TouchInit(void);
    38 extern int SDL_TouchInit(void);
    38 
    39 
    39 /* Add a touch, returning the index of the touch, or -1 if there was an error. */
    40 /* Add a touch, returning the index of the touch, or -1 if there was an error. */
    40 extern int SDL_AddTouch(SDL_TouchID id, const char *name);
    41 extern int SDL_AddTouch(SDL_TouchID id, SDL_TouchDeviceType type, const char *name);
    41 
    42 
    42 /* Get the touch with a given id */
    43 /* Get the touch with a given id */
    43 extern SDL_Touch *SDL_GetTouch(SDL_TouchID id);
    44 extern SDL_Touch *SDL_GetTouch(SDL_TouchID id);
    44 
    45 
    45 /* Send a touch down/up event for a touch */
    46 /* Send a touch down/up event for a touch */