Skip to content

Documentation / @debuffjp/input / TouchSpot

Interface: TouchSpot ​

Defined in: touch.ts:16

A position in logical units. A negative value counts from the far edge: { x: -32, y: -32 } is 32 units in from the bottom-right corner, so the layout holds when the game's size changes (scale: "expand").

Extended by ​

Properties ​

radius? ​

optional radius?: number

Defined in: touch.ts:20

Touch radius. Default 24 for the stick, 16 for a button.


x ​

x: number

Defined in: touch.ts:17


y ​

y: number

Defined in: touch.ts:18