comparison src/events/SDL_mouse_c.h @ 2794:f7872b7a8732

Fixed mouse coordinate range on Mac OS X
author Sam Lantinga <slouken@libsdl.org>
date Thu, 27 Nov 2008 21:53:18 +0000
parents 76c2fc9696ea
children 523b10db69f8
comparison
equal deleted inserted replaced
2793:b14f672b2857 2794:f7872b7a8732
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; 69 int x, x_max;
70 int y; 70 int y, y_max;
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
115 /* Send a mouse motion event for a mouse */ 118 /* Send a mouse motion event for a mouse */
116 extern int SDL_SendMouseMotion(int id, int relative, int x, int y, int z); 119 extern int SDL_SendMouseMotion(int id, int relative, int x, int y, int z);
117 120
118 /* Send a mouse button event for a mouse */ 121 /* Send a mouse button event for a mouse */
119 extern int SDL_SendMouseButton(int id, Uint8 state, Uint8 button); 122 extern int SDL_SendMouseButton(int id, Uint8 state, Uint8 button);
126 129
127 /* Shutdown the mouse subsystem */ 130 /* Shutdown the mouse subsystem */
128 extern void SDL_MouseQuit(void); 131 extern void SDL_MouseQuit(void);
129 132
130 /* FIXME: Where do these functions go in this header? */ 133 /* FIXME: Where do these functions go in this header? */
131 extern void SDL_UpdateCoordinates(int x, int y);
132 extern void SDL_ChangeEnd(int id, int end); 134 extern void SDL_ChangeEnd(int id, int end);
133 135
134 #endif /* _SDL_mouse_c_h */ 136 #endif /* _SDL_mouse_c_h */
135 137
136 /* vi: set ts=4 sw=4 expandtab: */ 138 /* vi: set ts=4 sw=4 expandtab: */