Estethic changes noted on the SDL meeting 05.07.08 gsoc2008_manymouse
authorSzymon Wilczek <kazeuser@gmail.com>
Sat, 05 Jul 2008 20:02:07 +0000
branchgsoc2008_manymouse
changeset 3765ed9b7fe8f902
parent 3764 2970fcfbdd54
child 3766 24db5d326f57
Estethic changes noted on the SDL meeting 05.07.08
include/SDL_events.h
src/events/SDL_mouse.c
src/events/SDL_mouse_c.h
     1.1 --- a/include/SDL_events.h	Thu Jul 03 22:03:58 2008 +0000
     1.2 +++ b/include/SDL_events.h	Sat Jul 05 20:02:07 2008 +0000
     1.3 @@ -174,7 +174,10 @@
     1.4      Uint8 state;            /**< The current button state */
     1.5      int x;                  /**< X coordinate, relative to window */
     1.6      int y;                  /**< Y coordinate, relative to window */
     1.7 -    int z;
     1.8 +    int z;                  /**< Z coordinate, for future use*/
     1.9 +    int pressure;           /**< Pressure reported by tablets */
    1.10 +    int rotation;           /**<For future use */
    1.11 +    int tilt;               /**<For future use */
    1.12      int xrel;               /**< The relative motion in the X direction */
    1.13      int yrel;               /**< The relative motion in the Y direction */
    1.14      SDL_WindowID windowID;  /**< The window with mouse focus, if any */
     2.1 --- a/src/events/SDL_mouse.c	Thu Jul 03 22:03:58 2008 +0000
     2.2 +++ b/src/events/SDL_mouse.c	Sat Jul 05 20:02:07 2008 +0000
     2.3 @@ -417,7 +417,7 @@
     2.4      }
     2.5      mouse->xdelta += xrel;
     2.6      mouse->ydelta += yrel;
     2.7 -    mouse->z=z;
     2.8 +    mouse->pressure=z;
     2.9  
    2.10      /* Move the mouse cursor, if needed */
    2.11      if (mouse->cursor_shown && !mouse->relative_mode &&
    2.12 @@ -434,7 +434,7 @@
    2.13          event.motion.state = mouse->buttonstate;
    2.14          event.motion.x = mouse->x;
    2.15          event.motion.y = mouse->y;
    2.16 -        event.motion.z = mouse->z;
    2.17 +        event.motion.pressure= mouse->pressure;
    2.18          event.motion.xrel = xrel;
    2.19          event.motion.yrel = yrel;
    2.20          event.motion.windowID = mouse->focus;
     3.1 --- a/src/events/SDL_mouse_c.h	Thu Jul 03 22:03:58 2008 +0000
     3.2 +++ b/src/events/SDL_mouse_c.h	Sat Jul 05 20:02:07 2008 +0000
     3.3 @@ -61,9 +61,12 @@
     3.4      int which;
     3.5      int x;
     3.6      int y;
     3.7 -    int z;
     3.8 +    int z;/*for future use*/
     3.9      int xdelta;
    3.10      int ydelta;
    3.11 +    int pressure;
    3.12 +    int tilt;/*for future use*/
    3.13 +    int rotation;/*for future use*/
    3.14      char* name;
    3.15      Uint8 buttonstate;
    3.16      SDL_bool relative_mode;