Mercurial > sdl-ios-xcode
comparison src/video/SDL_sysvideo.h @ 1671:89f7510fe17a SDL-1.3
Moved the cursor handling into the mouse code.
Added support for multiple mice, potentially dynamically added and removed.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Fri, 09 Jun 2006 06:42:42 +0000 |
parents | eef792d31de8 |
children | 624e1412fbba |
comparison
equal
deleted
inserted
replaced
1670:eef792d31de8 | 1671:89f7510fe17a |
---|---|
288 /* Texture id */ | 288 /* Texture id */ |
289 GLuint texture; | 289 GLuint texture; |
290 | 290 |
291 int is_32bit; | 291 int is_32bit; |
292 #endif | 292 #endif |
293 | |
294 /* * * */ | |
295 /* Cursor manager functions */ | |
296 | |
297 /* Free a window manager cursor | |
298 This function can be NULL if CreateWMCursor is also NULL. | |
299 */ | |
300 void (*FreeCursor) (_THIS, SDL_Cursor * cursor); | |
301 | |
302 /* If not NULL, create a black/white window manager cursor */ | |
303 SDL_Cursor *(*CreateCursor) (_THIS, | |
304 Uint8 * data, Uint8 * mask, int w, int h, | |
305 int hot_x, int hot_y); | |
306 | |
307 /* Show the specified cursor, or hide if cursor is NULL */ | |
308 int (*ShowCursor) (_THIS, SDL_Cursor * cursor); | |
309 | |
310 /* Warp the window manager cursor to (x,y) | |
311 If NULL, a mouse motion event is posted internally. | |
312 */ | |
313 void (*WarpCursor) (_THIS, SDL_WindowID windowID, int x, int y); | |
314 | |
315 /* If not NULL, this is called when a mouse motion event occurs */ | |
316 void (*MoveCursor) (_THIS, int x, int y); | |
317 | 293 |
318 /* Determine whether the mouse should be in relative mode or not. | 294 /* Determine whether the mouse should be in relative mode or not. |
319 This function is called when the input grab state or cursor | 295 This function is called when the input grab state or cursor |
320 visibility state changes. | 296 visibility state changes. |
321 If the cursor is not visible, and the input is grabbed, the | 297 If the cursor is not visible, and the input is grabbed, the |