src/events/SDL_mouse_c.h
changeset 8066 658b461d81be
parent 7191 75360622e65f
child 8071 1ac2db4abe11
     1.1 --- a/src/events/SDL_mouse_c.h	Mon Dec 23 10:54:27 2013 -0800
     1.2 +++ b/src/events/SDL_mouse_c.h	Mon Dec 23 12:17:52 2013 -0800
     1.3 @@ -35,6 +35,13 @@
     1.4  
     1.5  typedef struct
     1.6  {
     1.7 +    int last_x, last_y;
     1.8 +    Uint32 last_timestamp;
     1.9 +    Uint8 click_count;
    1.10 +} SDL_MouseClickState;
    1.11 +
    1.12 +typedef struct
    1.13 +{
    1.14      /* Create a cursor from a surface */
    1.15      SDL_Cursor *(*CreateCursor) (SDL_Surface * surface, int hot_x, int hot_y);
    1.16  
    1.17 @@ -69,6 +76,10 @@
    1.18      /* the x and y coordinates when relative mode was activated */
    1.19      int original_x, original_y;
    1.20  
    1.21 +    /* Data for double-click tracking */
    1.22 +    int num_clickstates;
    1.23 +    SDL_MouseClickState *clickstate;
    1.24 +
    1.25      SDL_Cursor *cursors;
    1.26      SDL_Cursor *def_cursor;
    1.27      SDL_Cursor *cur_cursor;
    1.28 @@ -85,6 +96,9 @@
    1.29  /* Get the mouse state structure */
    1.30  SDL_Mouse *SDL_GetMouse(void);
    1.31  
    1.32 +/* Set the default double-click interval */
    1.33 +extern void SDL_SetDoubleClickTime(Uint32 interval);
    1.34 +
    1.35  /* Set the default mouse cursor */
    1.36  extern void SDL_SetDefaultCursor(SDL_Cursor * cursor);
    1.37