SDL2Mouse

Holds SDL mouse state.

Constructors

this
this(SDL2 sdl2)
Undocumented in source.

Members

Functions

isButtonPressed
bool isButtonPressed(int mask)
lastDeltaX
int lastDeltaX()
lastDeltaY
int lastDeltaY()
position
SDL_Point position()
previousPosition
SDL_Point previousPosition()
startCapture
void startCapture()

Use this function to capture the mouse and to track input outside an SDL window.

stopCapture
void stopCapture()

Use this function to stop capturing the mouse.

updateButtons
void updateButtons(const(SDL_MouseButtonEvent)* event)
Undocumented in source. Be warned that the author may not have intended to support it.
updateMotion
void updateMotion(const(SDL_MouseMotionEvent)* event)
Undocumented in source. Be warned that the author may not have intended to support it.
updateWheel
void updateWheel(const(SDL_MouseWheelEvent)* event)
Undocumented in source. Be warned that the author may not have intended to support it.
wheelDeltaX
int wheelDeltaX()
wheelDeltaY
int wheelDeltaY()
x
int x()
y
int y()

Meta