Mercurial > sdl-ios-xcode
comparison src/events/SDL_mouse_c.h @ 3685:64ce267332c6
Switched from SDL_WindowID and SDL_TextureID to SDL_Window* and SDL_Texture* for code simplicity and improved performance.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 21 Jan 2010 06:21:52 +0000 |
parents | b93965a16fe0 |
children | f7b03b6838cb |
comparison
equal
deleted
inserted
replaced
3684:cc564f08884f | 3685:64ce267332c6 |
---|---|
46 | 46 |
47 /* Free a window manager cursor */ | 47 /* Free a window manager cursor */ |
48 void (*FreeCursor) (SDL_Cursor * cursor); | 48 void (*FreeCursor) (SDL_Cursor * cursor); |
49 | 49 |
50 /* Warp the mouse to (x,y) */ | 50 /* Warp the mouse to (x,y) */ |
51 void (*WarpMouse) (SDL_Mouse * mouse, SDL_WindowID windowID, int x, | 51 void (*WarpMouse) (SDL_Mouse * mouse, SDL_Window * window, int x, |
52 int y); | 52 int y); |
53 | 53 |
54 /* Free the mouse when it's time */ | 54 /* Free the mouse when it's time */ |
55 void (*FreeMouse) (SDL_Mouse * mouse); | 55 void (*FreeMouse) (SDL_Mouse * mouse); |
56 | 56 |
63 int total_ends; | 63 int total_ends; |
64 int current_end; | 64 int current_end; |
65 | 65 |
66 /* Data common to all mice */ | 66 /* Data common to all mice */ |
67 int id; | 67 int id; |
68 SDL_WindowID focus; | 68 SDL_Window *focus; |
69 int which; | 69 int which; |
70 int x; | 70 int x; |
71 int y; | 71 int y; |
72 int z; /* for future use */ | 72 int z; /* for future use */ |
73 int xdelta; | 73 int xdelta; |
104 | 104 |
105 /* Clear the button state of a mouse at an index */ | 105 /* Clear the button state of a mouse at an index */ |
106 extern void SDL_ResetMouse(int index); | 106 extern void SDL_ResetMouse(int index); |
107 | 107 |
108 /* Set the mouse focus window */ | 108 /* Set the mouse focus window */ |
109 extern void SDL_SetMouseFocus(int id, SDL_WindowID windowID); | 109 extern void SDL_SetMouseFocus(int id, SDL_Window * window); |
110 | 110 |
111 /* Send a mouse motion event for a mouse */ | 111 /* Send a mouse motion event for a mouse */ |
112 extern int SDL_SendMouseMotion(int id, int relative, int x, int y, int z); | 112 extern int SDL_SendMouseMotion(int id, int relative, int x, int y, int z); |
113 | 113 |
114 /* Send a mouse button event for a mouse */ | 114 /* Send a mouse button event for a mouse */ |