Input

Constructors

this
this(Game game)
Undocumented in source.

Members

Functions

getController
Controller getController(int index)
getMousePosition
Vector2 getMousePosition()
isKeyDown
bool isKeyDown(Key key)
isKeyUp
bool isKeyUp(Key key)
isMouseButtonDown
bool isMouseButtonDown(MouseButton button)
isMouseButtonUp
bool isMouseButtonUp(MouseButton button)
keyJustPressed
bool keyJustPressed(Key key)

Returns true if the key is pressed and was not pressed in the last tick

mouseButtonClicked
bool mouseButtonClicked(MouseButton button)
simulateStick
Vector2 simulateStick(Key up, Key left, Key down, Key right)

Uses the WASD format, returns a normalized vector

update
void update()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta