322 int w,
int h,
int hot_x,
465#define SDL_BUTTON(X) (1 << ((X)-1))
466#define SDL_BUTTON_LEFT 1
467#define SDL_BUTTON_MIDDLE 2
468#define SDL_BUTTON_RIGHT 3
469#define SDL_BUTTON_X1 4
470#define SDL_BUTTON_X2 5
471#define SDL_BUTTON_LMASK SDL_BUTTON(SDL_BUTTON_LEFT)
472#define SDL_BUTTON_MMASK SDL_BUTTON(SDL_BUTTON_MIDDLE)
473#define SDL_BUTTON_RMASK SDL_BUTTON(SDL_BUTTON_RIGHT)
474#define SDL_BUTTON_X1MASK SDL_BUTTON(SDL_BUTTON_X1)
475#define SDL_BUTTON_X2MASK SDL_BUTTON(SDL_BUTTON_X2)
void SDL_DestroyCursor(SDL_Cursor *cursor)
SDL_Cursor * SDL_GetCursor(void)
Uint32 SDL_GetRelativeMouseState(float *x, float *y)
SDL_Window * SDL_GetMouseFocus(void)
int SDL_WarpMouseGlobal(float x, float y)
SDL_bool SDL_GetRelativeMouseMode(void)
SDL_SystemCursor
Cursor types for SDL_CreateSystemCursor().
@ 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
SDL_bool SDL_CursorVisible(void)
Uint32 SDL_GetGlobalMouseState(float *x, float *y)
struct SDL_Cursor SDL_Cursor
SDL_Cursor * SDL_CreateColorCursor(SDL_Surface *surface, int hot_x, int hot_y)
Uint32 SDL_GetMouseState(float *x, float *y)
void SDL_WarpMouseInWindow(SDL_Window *window, float x, float 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)
SDL_MouseWheelDirection
Scroll direction types for the Scroll event.
int SDL_SetRelativeMouseMode(SDL_bool enabled)
int SDL_SetCursor(SDL_Cursor *cursor)
SDL_Cursor * SDL_GetDefaultCursor(void)
GLint GLint GLint GLint GLint GLint y
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
GLint GLint GLint GLint GLint x
GLenum GLenum GLsizei const GLuint GLboolean enabled
GLfloat GLfloat GLfloat GLfloat h
GLubyte GLubyte GLubyte GLubyte w
struct SDL_Window SDL_Window
The type used to identify a window.
A collection of pixels used in software blitting.