@minecraft/server / InputInfo
Class: InputInfo ​
Defined in: @minecraft/server/index.d.ts:13361
Contains the input information for a client instance.
Properties ​
lastInputModeUsed ​
readonlylastInputModeUsed:InputMode
Defined in: @minecraft/server/index.d.ts:13373
Remarks ​
The last input mode used by the player.
Throws ​
This property can throw when used.
minecraftcommon.EngineError
touchOnlyAffectsHotbar ​
readonlytouchOnlyAffectsHotbar:boolean
Defined in: @minecraft/server/index.d.ts:13383
Remarks ​
Whether the player touch input only affects the touchbar or not.
Throws ​
This property can throw when used.
Methods ​
getButtonState() ​
getButtonState(
button):ButtonState
Defined in: @minecraft/server/index.d.ts:13391
Parameters ​
button ​
Returns ​
Throws ​
This function can throw errors.
minecraftcommon.EngineError
getMovementVector() ​
getMovementVector():
Vector2
Defined in: @minecraft/server/index.d.ts:13397
Returns ​
Throws ​
This function can throw errors.