dsdl2.mouse

Members

Classes

Cursor
class Cursor

D class that wraps SDL_Cursor which sets cursor appearance

Enums

MouseButton
enum MouseButton

D enum that wraps SDL_BUTTON_* enumerations

MouseWheel
enum MouseWheel

D enum that wraps SDL_MOUSEWHEEL_* enumerations (from SDL 2.0.4)

Functions

getCursor
Cursor getCursor()

Wraps SDL_GetCursor which gets the current set cursor

getCursorVisibility
bool getCursorVisibility()

Wraps SDL_ShowCursor which sets the visibility of the cursor

getDefaultCursor
Cursor getDefaultCursor()

Wraps SDL_GetDefaultCursor which gets the default cursor

getGlobalMousePosition
int[2] getGlobalMousePosition()

Wraps SDL_GetGlobalMouseState (from SDL 2.0.4) which gets the mouse position globally

getGlobalMouseState
MouseState getGlobalMouseState()

Wraps SDL_GetGlobalMouseState (from SDL 2.0.4) which gets the global states of the mouse buttons

getMouseFocusedWindow
Window getMouseFocusedWindow()

Wraps SDL_GetMouseFocus which gets the mouse-focused window

getMousePosition
int[2] getMousePosition()

Wraps SDL_GetMouseState which gets the mouse position relative to a focused window

getMouseState
MouseState getMouseState()

Wraps SDL_GetMouseState which gets the states of the mouse buttons

getRelativeMouseMode
bool getRelativeMouseMode()

Wraps SDL_GetRelativeMouseMode which checks whether relative mouse mode is enabled or not

getRelativeMousePosition
int[2] getRelativeMousePosition()

Wraps SDL_GetRelativeMouseState which gets the relative mouse position

getRelativeMouseState
MouseState getRelativeMouseState()

Wraps SDL_GetRelativeMouseState which gets the relative states of the mouse buttons

setCursorVisibility
void setCursorVisibility(bool visible)

Wraps SDL_ShowCursor which sets the visibility of the cursor

setGlobalMousePosition
void setGlobalMousePosition(int[2] newPosition)

Wraps SDL_WarpMouseGlobal (from SDL 2.0.4) which sets the mouse position globally in the display

setMouseCapture
void setMouseCapture(bool newMouseCapture)

Wraps SDL_CaptureMouse (from SDL 2.0.4) which sets mouse capture

setMousePosition
void setMousePosition(int[2] newPosition)

Wraps SDL_WarpMouseInWindow which sets the mouse position relative to a focused window

setRelativeMouseMode
void setRelativeMouseMode(bool newRelativeMouseMode)

Wraps SDL_SetRelativeMouseMode which sets relative mouse mode

Structs

MouseState
struct MouseState

D struct that encapsulates mouse button state flags

Meta

Authors

Avaxar <avaxar@nekkl.org>