Enum in @minecraft/server
The kind of controls a player steers with.
import { InputMode } from '@minecraft/server';Example
Section titled “Example”import { InputMode } from '@minecraft/server';
const value: InputMode = InputMode.Gamepad;console.log(value); // "Gamepad"import { InputMode } from '@minecraft/server';
const value = InputMode.Gamepad;console.log(value); // "Gamepad"Values
Section titled “Values”| Name | Value | Description |
|---|---|---|
Gamepad |
"Gamepad" |
|
KeyboardAndMouse |
"KeyboardAndMouse" |
|
MotionController |
"MotionController" |
|
Touch |
"Touch" |
Used by
Section titled “Used by”PlayerInputInfo.lastInputModeUsed, InputInfo.lastInputModeUsed, PlayerInputModeChangeAfterEvent.newInputModeUsed, PlayerInputModeChangeAfterEvent.previousInputModeUsed