From 4f71740c48d3e7f5f2ae5dd29de8b1a012b44434 Mon Sep 17 00:00:00 2001 From: Szymon Wilczek Date: Sat, 5 Jul 2008 20:02:07 +0000 Subject: [PATCH] Estethic changes noted on the SDL meeting 05.07.08 --- include/SDL_events.h | 5 ++++- src/events/SDL_mouse.c | 4 ++-- src/events/SDL_mouse_c.h | 5 ++++- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/include/SDL_events.h b/include/SDL_events.h index 347370abc..81faf13fa 100644 --- a/include/SDL_events.h +++ b/include/SDL_events.h @@ -174,7 +174,10 @@ typedef struct SDL_MouseMotionEvent 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; /**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.which = (Uint8) index; 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; diff --git a/src/events/SDL_mouse_c.h b/src/events/SDL_mouse_c.h index 0569099ec..8a3c595a4 100644 --- a/src/events/SDL_mouse_c.h +++ b/src/events/SDL_mouse_c.h @@ -61,9 +61,12 @@ struct SDL_Mouse 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;