Skip to content

ButtonBinding

Defined in: packages/threeplay/src/plugins/input/types.ts:22

One virtual button and the physical inputs that press it.

optional gamepad?: string | string[]

Defined in: packages/threeplay/src/plugins/input/types.ts:28

Gamepad buttons (standard mapping names).


optional keyboard?: string | string[]

Defined in: packages/threeplay/src/plugins/input/types.ts:24

Keyboard keys (any of them presses the button).


optional mouse?: MouseButton | MouseButton[]

Defined in: packages/threeplay/src/plugins/input/types.ts:26

Mouse buttons.