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 3765 ed9b7fe8f902
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
--- a/include/SDL_events.h	Thu Jul 03 22:03:58 2008 +0000
+++ b/include/SDL_events.h	Sat Jul 05 20:02:07 2008 +0000
@@ -174,7 +174,10 @@
     Uint8 state;            /**< The current button state */
     int x;                  /**< X coordinate, relative to window */
     int y;                  /**< Y coordinate, relative to window */
-    int z;
+    int z;                  /**< Z coordinate, for future use*/
+    int pressure;           /**< Pressure reported by tablets */
+    int rotation;           /**<For future use */
+    int tilt;               /**<For future use */
     int xrel;               /**< The relative motion in the X direction */
     int yrel;               /**< The relative motion in the Y direction */
     SDL_WindowID windowID;  /**< The window with mouse focus, if any */
--- a/src/events/SDL_mouse.c	Thu Jul 03 22:03:58 2008 +0000
+++ b/src/events/SDL_mouse.c	Sat Jul 05 20:02:07 2008 +0000
@@ -417,7 +417,7 @@
     }
     mouse->xdelta += xrel;
     mouse->ydelta += yrel;
-    mouse->z=z;
+    mouse->pressure=z;
 
     /* Move the mouse cursor, if needed */
     if (mouse->cursor_shown && !mouse->relative_mode &&
@@ -434,7 +434,7 @@
         event.motion.state = mouse->buttonstate;
         event.motion.x = mouse->x;
         event.motion.y = mouse->y;
-        event.motion.z = mouse->z;
+        event.motion.pressure= mouse->pressure;
         event.motion.xrel = xrel;
         event.motion.yrel = yrel;
         event.motion.windowID = mouse->focus;
--- a/src/events/SDL_mouse_c.h	Thu Jul 03 22:03:58 2008 +0000
+++ b/src/events/SDL_mouse_c.h	Sat Jul 05 20:02:07 2008 +0000
@@ -61,9 +61,12 @@
     int which;
     int x;
     int y;
-    int z;
+    int z;/*for future use*/
     int xdelta;
     int ydelta;
+    int pressure;
+    int tilt;/*for future use*/
+    int rotation;/*for future use*/
     char* name;
     Uint8 buttonstate;
     SDL_bool relative_mode;