Classes
InputService
InputService
is a service used for detecting inputs made by the player
You cannot Instance this class with
Instance.new()
Functions
IsKeyPressed(KeyList key)
Returns a bool telling if a key is pressed. An example:
IsKeyHeld(KeyList key)
Returns a bool telling if a key is held. An example:
IsKeyReleased(KeyList key)
Returns a bool telling if a key is released. An example:
IsAnyKeyPressed()
Returns a bool telling if any key was pressed. An example:
GetMousePosition()
Returns mouse position as Vector2
.