Mercurial > sdl-ios-xcode
comparison include/SDL_mouse.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 | f8816ffa210b |
children | f7b03b6838cb |
comparison
equal
deleted
inserted
replaced
3684:cc564f08884f | 3685:64ce267332c6 |
---|---|
73 extern DECLSPEC int SDLCALL SDL_SelectMouse(int index); | 73 extern DECLSPEC int SDLCALL SDL_SelectMouse(int index); |
74 | 74 |
75 /** | 75 /** |
76 * \brief Get the window which currently has focus for the specified mouse. | 76 * \brief Get the window which currently has focus for the specified mouse. |
77 */ | 77 */ |
78 extern DECLSPEC SDL_WindowID SDLCALL SDL_GetMouseFocusWindow(int index); | 78 extern DECLSPEC SDL_Window * SDLCALL SDL_GetMouseFocusWindow(int index); |
79 | 79 |
80 /** | 80 /** |
81 * \brief Set relative mouse mode for the specified mouse. | 81 * \brief Set relative mouse mode for the specified mouse. |
82 * | 82 * |
83 * \param enabled Whether or not to enable relative mode | 83 * \param enabled Whether or not to enable relative mode |
124 int *y); | 124 int *y); |
125 | 125 |
126 /** | 126 /** |
127 * \brief Moves the currently selected mouse to the given position within the window. | 127 * \brief Moves the currently selected mouse to the given position within the window. |
128 * | 128 * |
129 * \param windowID The window to move the mouse into, or 0 for the current mouse focus | 129 * \param window The window to move the mouse into, or NULL for the current mouse focus |
130 * \param x The x coordinate within the window | 130 * \param x The x coordinate within the window |
131 * \param y The y coordinate within the window | 131 * \param y The y coordinate within the window |
132 * | 132 * |
133 * \note This function generates a mouse motion event | 133 * \note This function generates a mouse motion event |
134 */ | 134 */ |
135 extern DECLSPEC void SDLCALL SDL_WarpMouseInWindow(SDL_WindowID windowID, | 135 extern DECLSPEC void SDLCALL SDL_WarpMouseInWindow(SDL_Window * window, |
136 int x, int y); | 136 int x, int y); |
137 | 137 |
138 /** | 138 /** |
139 * \brief Create a cursor for the currently selected mouse, using the | 139 * \brief Create a cursor for the currently selected mouse, using the |
140 * specified bitmap data and mask (in MSB format). | 140 * specified bitmap data and mask (in MSB format). |