222 int w,
int h,
int hot_x,
279 #define SDL_BUTTON(X) (1 << ((X)-1)) 280 #define SDL_BUTTON_LEFT 1 281 #define SDL_BUTTON_MIDDLE 2 282 #define SDL_BUTTON_RIGHT 3 283 #define SDL_BUTTON_X1 4 284 #define SDL_BUTTON_X2 5 285 #define SDL_BUTTON_LMASK SDL_BUTTON(SDL_BUTTON_LEFT) 286 #define SDL_BUTTON_MMASK SDL_BUTTON(SDL_BUTTON_MIDDLE) 287 #define SDL_BUTTON_RMASK SDL_BUTTON(SDL_BUTTON_RIGHT) 288 #define SDL_BUTTON_X1MASK SDL_BUTTON(SDL_BUTTON_X1) 289 #define SDL_BUTTON_X2MASK SDL_BUTTON(SDL_BUTTON_X2) SDL_Cursor * SDL_GetCursor(void)
Return the active cursor.
SDL_bool SDL_GetRelativeMouseMode(void)
Query whether relative mouse mode is enabled.
uint32_t Uint32
An unsigned 32-bit integer type.
A collection of pixels used in software blitting.
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
SDL_Window * SDL_GetMouseFocus(void)
Get the window which currently has mouse focus.
void SDL_WarpMouseInWindow(SDL_Window *window, int x, int y)
Moves the mouse to the given position within the window.
GLint GLint GLint GLint GLint x
int SDL_CaptureMouse(SDL_bool enabled)
Capture the mouse, to track input outside an SDL window.
int SDL_WarpMouseGlobal(int x, int y)
Moves the mouse to the given position in global screen space.
SDL_Cursor * SDL_CreateSystemCursor(SDL_SystemCursor id)
Create a system cursor.
SDL_Cursor * SDL_CreateCursor(const Uint8 *data, const Uint8 *mask, int w, int h, int hot_x, int hot_y)
Create a cursor, using the specified bitmap data and mask (in MSB format).
uint8_t Uint8
An unsigned 8-bit integer type.
Uint32 SDL_GetRelativeMouseState(int *x, int *y)
Retrieve the relative state of the mouse.
SDL_SystemCursor
Cursor types for SDL_CreateSystemCursor.
GLenum GLenum GLsizei const GLuint GLboolean enabled
SDL_Cursor * SDL_GetDefaultCursor(void)
Return the default cursor.
void SDL_SetCursor(SDL_Cursor *cursor)
Set the active cursor.
GLint GLint GLint GLint GLint GLint y
void SDL_FreeCursor(SDL_Cursor *cursor)
Frees a cursor created with SDL_CreateCursor().
The type used to identify a window.
Uint32 SDL_GetMouseState(int *x, int *y)
Retrieve the current state of the mouse.
GLubyte GLubyte GLubyte GLubyte w
int SDL_ShowCursor(int toggle)
Toggle whether or not the cursor is shown.
Uint32 SDL_GetGlobalMouseState(int *x, int *y)
Get the current state of the mouse, in relation to the desktop.
SDL_MouseWheelDirection
Scroll direction types for the Scroll event.
GLfloat GLfloat GLfloat GLfloat h
SDL_Cursor * SDL_CreateColorCursor(SDL_Surface *surface, int hot_x, int hot_y)
Create a color cursor.
int SDL_SetRelativeMouseMode(SDL_bool enabled)
Set relative mouse mode.