Input

Members

Functions

createColorCursor
void createColorCursor(int h_x, int h_y)
cursor
SDL_Cursor* cursor()
Undocumented in source. Be warned that the author may not have intended to support it.
cursorHandle
SDL_Cursor* cursorHandle()
Undocumented in source. Be warned that the author may not have intended to support it.
cursorVisible
void cursorVisible(bool visible)
defaultCursor
SDL_Cursor* defaultCursor()
Undocumented in source. Be warned that the author may not have intended to support it.
isKeyDown
bool isKeyDown(KeyCode key)
isKeyHold
bool isKeyHold(KeyCode key)
isKeyHold
bool isKeyHold(KeyModFlag key)
isKeyNone
bool isKeyNone(KeyCode key)
isKeyUp
bool isKeyUp(KeyCode key)
isMouseButtonPressed
bool isMouseButtonPressed(MouseButton button)
isMouseMoving
bool isMouseMoving()
isMouseScrolling
bool isMouseScrolling()
isServiceRunning
bool isServiceRunning()

Returns true if Input service is running.

lastMousePosition
Vector2I lastMousePosition()
lockMouse
void lockMouse(bool lock)
markKeyAsJustReleased
bool markKeyAsJustReleased(SDL_Scancode scancode)
Undocumented in source. Be warned that the author may not have intended to support it.
markKeyAsPressed
bool markKeyAsPressed(SDL_Scancode scancode)
Undocumented in source. Be warned that the author may not have intended to support it.
mouseDeltaWheel
Vector2I mouseDeltaWheel()
mouseDeltaWheelX
int mouseDeltaWheelX()
mouseDeltaWheelY
int mouseDeltaWheelY()
mousePosition
Vector2I mousePosition()

Returns current position of the mouse.

mouseRelativeDirection
Vector2I mouseRelativeDirection()

Returns the relative direction of the mouse.

previousMousePosition
Vector2I previousMousePosition()

Returns previous position of the mouse.

relativeMouseMode
void relativeMouseMode(bool relative)
restartService
void restartService()

Restart Input service.

setCurrentCursor
void setCurrentCursor()
startMouseCapture
void startMouseCapture()

Capture the mouse and track input outside the MainWindow.

startService
void startService()

Start Input service.

stopMouseCapture
void stopMouseCapture()
stopService
void stopService()

Stop Input service.

updateMouse
void updateMouse()
Undocumented in source. Be warned that the author may not have intended to support it.
updateMouseButtons
void updateMouseButtons(const(SDL_MouseButtonEvent)* event)
Undocumented in source. Be warned that the author may not have intended to support it.
updateMouseMotion
void updateMouseMotion(const(SDL_MouseMotionEvent)* event)
Undocumented in source. Be warned that the author may not have intended to support it.
updateMouseWheel
void updateMouseWheel(const(SDL_MouseWheelEvent)* event)
Undocumented in source. Be warned that the author may not have intended to support it.
useSystemCursor
void useSystemCursor(SystemCursor cursor)
windowGrab
void windowGrab(bool grabbed)

Variables

_isMouseMoving
bool _isMouseMoving;
Undocumented in source.
_isMouseWheeling
bool _isMouseWheeling;
Undocumented in source.

Inherited Members

From IService

startService
void startService()

Strat service.

stopService
void stopService()

Strat service.

restartService
void restartService()

Strat service.

isServiceRunning
bool isServiceRunning()

Strat service.

Meta