For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /server/classes/InputInfo.md.

Class: InputInfo

Beta

包含某个客户端实例的输入信息。

Contains the input information for a client instance.

Properties

lastInputModeUsed

readonly lastInputModeUsed: InputMode

Beta

Remarks

玩家最后使用的输入模式。

The last input mode used by the player.

Throws

This property can throw when used.

EngineError

InvalidEntityError


touchOnlyAffectsHotbar

readonly touchOnlyAffectsHotbar: boolean

Beta

Remarks

玩家的触摸输入是否仅影响触摸栏。

Whether the player touch input only affects the touchbar or not.

Throws

This property can throw when used.

InvalidEntityError

Methods

getButtonState()

getButtonState(button): ButtonState

Beta

Parameters

button

InputButton

Returns

ButtonState

Throws

This function can throw errors.

EngineError

InvalidEntityError


getMovementVector()

getMovementVector(): Vector2

Beta

Returns

Vector2

Throws

This function can throw errors.

InvalidEntityError