Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Contains the input information for a client instance.
Properties
lastInputModeUsed
read-only lastInputModeUsed: InputMode;
The last input mode used by the player.
Type: InputMode
Notes:
- This property can throw errors when used.
touchOnlyAffectsHotbar
read-only touchOnlyAffectsHotbar: boolean;
Whether the player touch input only affects the touchbar or not.
Type: boolean
Notes:
- This property can throw errors when used.
- Throws InvalidEntityError
Methods
getButtonState
getButtonState(button: InputButton): ButtonState
Parameters
- button: InputButton
Returns ButtonState
Notes:
- This function can throw errors.
getMovementVector
getMovementVector(): Vector2
Returns Vector2
Notes:
- This function can throw errors.
- Throws InvalidEntityError