Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Estethic changes noted on the SDL meeting 05.07.08
Browse files Browse the repository at this point in the history
  • Loading branch information
Szymon Wilczek committed Jul 5, 2008
1 parent 629e37b commit 4f71740
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
5 changes: 4 additions & 1 deletion include/SDL_events.h
Expand Up @@ -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; /**<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 */
Expand Down
4 changes: 2 additions & 2 deletions src/events/SDL_mouse.c
Expand Up @@ -417,7 +417,7 @@ SDL_SendMouseMotion(int id, int relative, int x, int y,int z)
}
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 &&
Expand All @@ -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;
Expand Down
5 changes: 4 additions & 1 deletion src/events/SDL_mouse_c.h
Expand Up @@ -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;
Expand Down

0 comments on commit 4f71740

Please sign in to comment.