InputOpts
Defined in: packages/threeplay/src/plugins/input/types.ts:32
Options added to threeplay() by the input plugin.
Extended by
Section titled “Extended by”Properties
Section titled “Properties”buttons?
Section titled “buttons?”
optionalbuttons?:Record<string,ButtonBinding>
Defined in: packages/threeplay/src/plugins/input/types.ts:40
Virtual buttons: { jump: { keyboard: ["space", "w"], gamepad: "south" } }.
Merged over the defaults, which exist even if you pass nothing:
left (arrows, A), right (arrows, D), up (arrows, W), down (arrows, S)
and jump (space), each with its d-pad / south gamepad button. Redefining
a name replaces its default binding entirely.