sdl2/generated/lib_sdl_mouse library

Functions

sdlCaptureMouse(bool enabled) int
Capture the mouse and to track input outside an SDL window.
sdlCreateColorCursor(Pointer<SdlSurface> surface, int hotX, int hotY) Pointer<SdlCursor>
Create a color cursor.
sdlCreateCursor(Pointer<Uint8> data, Pointer<Uint8> mask, int w, int h, int hotX, int hotY) Pointer<SdlCursor>
Create a cursor using the specified bitmap data and mask (in MSB format).
sdlCreateSystemCursor(int id) Pointer<SdlCursor>
Create a system cursor.
sdlFreeCursor(Pointer<SdlCursor> cursor) → void
Free a previously-created cursor.
sdlGetCursor() Pointer<SdlCursor>
Get the active cursor.
sdlGetDefaultCursor() Pointer<SdlCursor>
Get the default cursor.
sdlGetGlobalMouseState(Pointer<Int32> x, Pointer<Int32> y) int
Get the current state of the mouse in relation to the desktop.
sdlGetMouseFocus() Pointer<SdlWindow>
Get the window which currently has mouse focus.
sdlGetMouseState(Pointer<Int32> x, Pointer<Int32> y) int
Retrieve the current state of the mouse.
sdlGetRelativeMouseMode() bool
Query whether relative mouse mode is enabled.
sdlGetRelativeMouseState(Pointer<Int32> x, Pointer<Int32> y) int
Retrieve the relative state of the mouse.
sdlSetCursor(Pointer<SdlCursor> cursor) → void
Set the active cursor.
sdlSetRelativeMouseMode(bool enabled) int
Set relative mouse mode.
sdlShowCursor(int toggle) int
Toggle whether or not the cursor is shown.
sdlWarpMouseGlobal(int x, int y) int
Move the mouse to the given position in global screen space.
sdlWarpMouseInWindow(Pointer<SdlWindow> window, int x, int y) → void
Move the mouse cursor to the given position within the window.