TruWorlds

InputSystem

Inherits: GameSystem

InputSystem is a client-side game system that provides input handling functionality.

InputSystem can only used in client-side scripts, and will return an error if accessed from the server.

Functions

IsKeyPressed(keyName: KeyName) Returns bool
IsMouseButtonPressed(button: MouseButton) Returns bool
IsPhysicalKeyPressed(keyName: KeyName) Returns bool

Signals

KeyPressed KeyName
KeyReleased KeyName
MouseButtonPressed MouseButton
MouseButtonReleased MouseButton
PhysicalKeyPressed KeyName
PhysicalKeyReleased KeyName