- getController
Controller getController(int index)
- getMousePosition
Vector2 getMousePosition()
- getTextInput
string getTextInput()
- isKeyDown
bool isKeyDown(Key key)
- isKeyRepeated
bool isKeyRepeated(Key key)
Returns true if a key down event was received before the key was released
Useful for creating text inputs
- 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)
- reset
void reset()
Undocumented in source. Be warned that the author may not have intended to support it.
- setKeyDown
void setKeyDown(SDL_Keycode keycode)
Undocumented in source. Be warned that the author may not have intended to support it.
- simulateStick
Vector2 simulateStick(Key up, Key left, Key down, Key right)
Uses the WASD format, returns a normalized vector
- startTextInput
void startTextInput()
- stopTextInput
void stopTextInput()
- update
void update()
Undocumented in source. Be warned that the author may not have intended to support it.
- updateTextInput
void updateTextInput(string text)
Undocumented in source. Be warned that the author may not have intended to support it.