146 int w,
int h,
int hot_x,
203 #define SDL_BUTTON(X) (1 << ((X)-1))
204 #define SDL_BUTTON_LEFT 1
205 #define SDL_BUTTON_MIDDLE 2
206 #define SDL_BUTTON_RIGHT 3
207 #define SDL_BUTTON_X1 4
208 #define SDL_BUTTON_X2 5
209 #define SDL_BUTTON_LMASK SDL_BUTTON(SDL_BUTTON_LEFT)
210 #define SDL_BUTTON_MMASK SDL_BUTTON(SDL_BUTTON_MIDDLE)
211 #define SDL_BUTTON_RMASK SDL_BUTTON(SDL_BUTTON_RIGHT)
212 #define SDL_BUTTON_X1MASK SDL_BUTTON(SDL_BUTTON_X1)
213 #define SDL_BUTTON_X2MASK SDL_BUTTON(SDL_BUTTON_X2)
DECLSPEC void SDLCALL SDL_FreeCursor(SDL_Cursor *cursor)
Frees a cursor created with SDL_CreateCursor().
DECLSPEC SDL_Cursor *SDLCALL 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).
GLfloat GLfloat GLfloat GLfloat h
DECLSPEC SDL_Cursor *SDLCALL SDL_CreateColorCursor(SDL_Surface *surface, int hot_x, int hot_y)
Create a color cursor.
DECLSPEC int SDLCALL SDL_ShowCursor(int toggle)
Toggle whether or not the cursor is shown.
GLenum GLsizei const GLuint GLboolean enabled
DECLSPEC SDL_Window *SDLCALL SDL_GetMouseFocus(void)
Get the window which currently has mouse focus.
A collection of pixels used in software blitting.
DECLSPEC Uint32 SDLCALL SDL_GetRelativeMouseState(int *x, int *y)
Retrieve the relative state of the mouse.
uint32_t Uint32
An unsigned 32-bit integer type.
DECLSPEC Uint32 SDLCALL SDL_GetMouseState(int *x, int *y)
Retrieve the current state of the mouse.
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
DECLSPEC SDL_Cursor *SDLCALL SDL_GetDefaultCursor(void)
Return the default cursor.
DECLSPEC void SDLCALL SDL_SetCursor(SDL_Cursor *cursor)
Set the active cursor.
SDL_SystemCursor
Cursor types for SDL_CreateSystemCursor.
DECLSPEC int SDLCALL SDL_SetRelativeMouseMode(SDL_bool enabled)
Set relative mouse mode.
EGLSurface EGLint EGLint y
DECLSPEC SDL_bool SDLCALL SDL_GetRelativeMouseMode(void)
Query whether relative mouse mode is enabled.
DECLSPEC void SDLCALL SDL_WarpMouseInWindow(SDL_Window *window, int x, int y)
Moves the mouse to the given position within the window.
uint8_t Uint8
An unsigned 8-bit integer type.
GLint GLint GLint GLint GLint GLint GLint GLbitfield mask
DECLSPEC SDL_Cursor *SDLCALL SDL_GetCursor(void)
Return the active cursor.
GLint GLint GLint GLint GLint w
DECLSPEC SDL_Cursor *SDLCALL SDL_CreateSystemCursor(SDL_SystemCursor id)
Create a system cursor.