Skip to content

Documentation / @debuffjp/input / TouchControlsOptions

Interface: TouchControlsOptions ​

Defined in: touch.ts:34

Properties ​

buttons? ​

optional buttons?: Record<string, TouchSpot>

Defined in: touch.ts:38

Buttons by name, read as Touch<name>: { A: { x: -24, y: -24 } } is "TouchA".


show? ​

optional show?: "touch" | "always" | "never"

Defined in: touch.ts:40

"touch" (default): visible from the first touch, so mouse and keyboard players never see them.


stick? ​

optional stick?: TouchStickOptions

Defined in: touch.ts:36

A stick, read as TouchStickLeft, TouchStickRight, TouchStickUp and TouchStickDown.