319 int w,
int h,
int hot_x,
444#define SDL_BUTTON(X) (1 << ((X)-1))
445#define SDL_BUTTON_LEFT 1
446#define SDL_BUTTON_MIDDLE 2
447#define SDL_BUTTON_RIGHT 3
448#define SDL_BUTTON_X1 4
449#define SDL_BUTTON_X2 5
450#define SDL_BUTTON_LMASK SDL_BUTTON(SDL_BUTTON_LEFT)
451#define SDL_BUTTON_MMASK SDL_BUTTON(SDL_BUTTON_MIDDLE)
452#define SDL_BUTTON_RMASK SDL_BUTTON(SDL_BUTTON_RIGHT)
453#define SDL_BUTTON_X1MASK SDL_BUTTON(SDL_BUTTON_X1)
454#define SDL_BUTTON_X2MASK SDL_BUTTON(SDL_BUTTON_X2)
SDL_Cursor * SDL_GetCursor(void)
void SDL_FreeCursor(SDL_Cursor *cursor)
SDL_Window * SDL_GetMouseFocus(void)
Uint32 SDL_GetRelativeMouseState(int *x, int *y)
int SDL_ShowCursor(int toggle)
void SDL_SetCursor(SDL_Cursor *cursor)
SDL_bool SDL_GetRelativeMouseMode(void)
@ SDL_SYSTEM_CURSOR_SIZENS
@ SDL_SYSTEM_CURSOR_ARROW
@ SDL_SYSTEM_CURSOR_SIZENWSE
@ SDL_SYSTEM_CURSOR_SIZENESW
@ SDL_SYSTEM_CURSOR_IBEAM
@ SDL_SYSTEM_CURSOR_WAITARROW
@ SDL_SYSTEM_CURSOR_SIZEALL
@ SDL_SYSTEM_CURSOR_SIZEWE
@ SDL_SYSTEM_CURSOR_CROSSHAIR
Uint32 SDL_GetMouseState(int *x, int *y)
void SDL_WarpMouseInWindow(SDL_Window *window, int x, int y)
struct SDL_Cursor SDL_Cursor
SDL_Cursor * SDL_CreateColorCursor(SDL_Surface *surface, int hot_x, int hot_y)
SDL_Cursor * SDL_CreateCursor(const Uint8 *data, const Uint8 *mask, int w, int h, int hot_x, int hot_y)
int SDL_CaptureMouse(SDL_bool enabled)
SDL_Cursor * SDL_CreateSystemCursor(SDL_SystemCursor id)
int SDL_WarpMouseGlobal(int x, int y)
int SDL_SetRelativeMouseMode(SDL_bool enabled)
Uint32 SDL_GetGlobalMouseState(int *x, int *y)
SDL_Cursor * SDL_GetDefaultCursor(void)
struct SDL_Window SDL_Window