Input

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

Meta