72 * The current button state is returned as a button bitmask, which can |
72 * The current button state is returned as a button bitmask, which can |
73 * be tested using the SDL_BUTTON(X) macros, and x and y are set to the |
73 * be tested using the SDL_BUTTON(X) macros, and x and y are set to the |
74 * mouse cursor position relative to the focus window for the currently |
74 * mouse cursor position relative to the focus window for the currently |
75 * selected mouse. You can pass NULL for either x or y. |
75 * selected mouse. You can pass NULL for either x or y. |
76 */ |
76 */ |
77 extern DECLSPEC Uint8 SDLCALL SDL_GetMouseState(int *x, int *y); |
77 extern DECLSPEC Uint32 SDLCALL SDL_GetMouseState(int *x, int *y); |
78 |
78 |
79 /** |
79 /** |
80 * \brief Retrieve the relative state of the mouse. |
80 * \brief Retrieve the relative state of the mouse. |
81 * |
81 * |
82 * The current button state is returned as a button bitmask, which can |
82 * The current button state is returned as a button bitmask, which can |
83 * be tested using the SDL_BUTTON(X) macros, and x and y are set to the |
83 * be tested using the SDL_BUTTON(X) macros, and x and y are set to the |
84 * mouse deltas since the last call to SDL_GetRelativeMouseState(). |
84 * mouse deltas since the last call to SDL_GetRelativeMouseState(). |
85 */ |
85 */ |
86 extern DECLSPEC Uint8 SDLCALL SDL_GetRelativeMouseState(int *x, int *y); |
86 extern DECLSPEC Uint32 SDLCALL SDL_GetRelativeMouseState(int *x, int *y); |
87 |
87 |
88 /** |
88 /** |
89 * \brief Moves the mouse to the given position within the window. |
89 * \brief Moves the mouse to the given position within the window. |
90 * |
90 * |
91 * \param window The window to move the mouse into, or NULL for the current mouse focus |
91 * \param window The window to move the mouse into, or NULL for the current mouse focus |