comparison src/events/SDL_mouse_c.h @ 2860:6ce28e5287e9

Date: Sun, 07 Dec 2008 13:35:23 +0100 From: Couriersud Subject: SDL: Mouse last_x, last_y into SDL_Mouse the attached diff moves the static vars last_x and last_y into SDL_Mouse. These, as far as I understand it, should be tied to the individual mouse. The patch also makes the code check for out of window conditions of mouse->x,y when relative movements are passed to MouseSendMotion. Also attached is the latest DirectFB code (dfb20081208) supporting multiple mice and keyboards. This works quite well with sdlmame now. It however needs more testing with different directfb configurations.
author Sam Lantinga <slouken@libsdl.org>
date Mon, 08 Dec 2008 00:52:12 +0000
parents 99210400e8b9
children b93965a16fe0
comparison
equal deleted inserted replaced
2859:99210400e8b9 2860:6ce28e5287e9
69 int x; 69 int x;
70 int y; 70 int y;
71 int z; /* for future use */ 71 int z; /* for future use */
72 int xdelta; 72 int xdelta;
73 int ydelta; 73 int ydelta;
74 int last_x, last_y; /* the last reported x and y coordinates */
74 char *name; 75 char *name;
75 Uint8 buttonstate; 76 Uint8 buttonstate;
76 SDL_bool relative_mode; 77 SDL_bool relative_mode;
77 SDL_bool proximity; 78 SDL_bool proximity;
78 SDL_bool flush_motion; 79 SDL_bool flush_motion;