103#define SDL_BUTTON_LEFT 1
104#define SDL_BUTTON_MIDDLE 2
105#define SDL_BUTTON_RIGHT 3
106#define SDL_BUTTON_X1 4
107#define SDL_BUTTON_X2 5
109#define SDL_BUTTON(X) (1u << ((X)-1))
110#define SDL_BUTTON_LMASK SDL_BUTTON(SDL_BUTTON_LEFT)
111#define SDL_BUTTON_MMASK SDL_BUTTON(SDL_BUTTON_MIDDLE)
112#define SDL_BUTTON_RMASK SDL_BUTTON(SDL_BUTTON_RIGHT)
113#define SDL_BUTTON_X1MASK SDL_BUTTON(SDL_BUTTON_X1)
114#define SDL_BUTTON_X2MASK SDL_BUTTON(SDL_BUTTON_X2)
410 int w,
int h,
int hot_x,
SDL_MouseButtonFlags SDL_GetRelativeMouseState(float *x, float *y)
void SDL_DestroyCursor(SDL_Cursor *cursor)
SDL_MouseButtonFlags SDL_GetGlobalMouseState(float *x, float *y)
SDL_Cursor * SDL_GetCursor(void)
SDL_Window * SDL_GetMouseFocus(void)
SDL_MouseButtonFlags SDL_GetMouseState(float *x, float *y)
int SDL_WarpMouseGlobal(float x, float y)
SDL_bool SDL_GetRelativeMouseMode(void)
@ SDL_SYSTEM_CURSOR_NWSE_RESIZE
@ SDL_SYSTEM_CURSOR_POINTER
@ SDL_SYSTEM_CURSOR_EW_RESIZE
@ SDL_SYSTEM_CURSOR_SE_RESIZE
@ SDL_SYSTEM_CURSOR_NS_RESIZE
@ SDL_SYSTEM_CURSOR_N_RESIZE
@ SDL_SYSTEM_CURSOR_E_RESIZE
@ SDL_SYSTEM_CURSOR_NE_RESIZE
@ SDL_SYSTEM_CURSOR_DEFAULT
@ SDL_SYSTEM_CURSOR_NESW_RESIZE
@ SDL_SYSTEM_CURSOR_W_RESIZE
@ SDL_SYSTEM_CURSOR_SW_RESIZE
@ SDL_SYSTEM_CURSOR_S_RESIZE
@ SDL_SYSTEM_CURSOR_NW_RESIZE
@ SDL_SYSTEM_CURSOR_NOT_ALLOWED
@ SDL_SYSTEM_CURSOR_CROSSHAIR
@ SDL_SYSTEM_CURSOR_PROGRESS
SDL_bool SDL_HasMouse(void)
SDL_bool SDL_CursorVisible(void)
struct SDL_Cursor SDL_Cursor
const char * SDL_GetMouseNameForID(SDL_MouseID instance_id)
SDL_Cursor * SDL_CreateColorCursor(SDL_Surface *surface, int hot_x, int hot_y)
void SDL_WarpMouseInWindow(SDL_Window *window, float x, float y)
SDL_MouseID * SDL_GetMice(int *count)
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)
Uint32 SDL_MouseButtonFlags
int SDL_SetRelativeMouseMode(SDL_bool enabled)
int SDL_SetCursor(SDL_Cursor *cursor)
SDL_Cursor * SDL_GetDefaultCursor(void)
struct SDL_Window SDL_Window