comparison src/events/SDL_mouse_c.h @ 2849:523b10db69f8

There's no reason to add extra code to notify the mice of window size changes. Just query the window size when we care about it. :)
author Sam Lantinga <slouken@libsdl.org>
date Sun, 07 Dec 2008 21:53:28 +0000
parents f7872b7a8732
children 99210400e8b9
comparison
equal deleted inserted replaced
2848:8a3aa505ecba 2849:523b10db69f8
64 int current_end; 64 int current_end;
65 65
66 /* Data common to all mice */ 66 /* Data common to all mice */
67 SDL_WindowID focus; 67 SDL_WindowID focus;
68 int which; 68 int which;
69 int x, x_max; 69 int x;
70 int y, y_max; 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 char *name; 74 char *name;
75 Uint8 buttonstate; 75 Uint8 buttonstate;
110 extern void SDL_ResetMouse(int index); 110 extern void SDL_ResetMouse(int index);
111 111
112 /* Set the mouse focus window */ 112 /* Set the mouse focus window */
113 extern void SDL_SetMouseFocus(int id, SDL_WindowID windowID); 113 extern void SDL_SetMouseFocus(int id, SDL_WindowID windowID);
114 114
115 /* Set the size of the mouse focus window */
116 extern void SDL_SetMouseFocusSize(SDL_WindowID windowID, int w, int h);
117
118 /* Send a mouse motion event for a mouse */ 115 /* Send a mouse motion event for a mouse */
119 extern int SDL_SendMouseMotion(int id, int relative, int x, int y, int z); 116 extern int SDL_SendMouseMotion(int id, int relative, int x, int y, int z);
120 117
121 /* Send a mouse button event for a mouse */ 118 /* Send a mouse button event for a mouse */
122 extern int SDL_SendMouseButton(int id, Uint8 state, Uint8 button); 119 extern int SDL_SendMouseButton(int id, Uint8 state, Uint8 button);