Skip to content

Documentation / @debuffjp/input / TouchStick

Interface: TouchStick ​

Defined in: touch.ts:44

The stick as it is this step.

Properties ​

centerX ​

centerX: number

Defined in: touch.ts:51

Where it's centred and where the knob is, in logical units (the floating centre while held).


centerY ​

centerY: number

Defined in: touch.ts:52


held ​

held: boolean

Defined in: touch.ts:49

A thumb is on it.


knobX ​

knobX: number

Defined in: touch.ts:53


knobY ​

knobY: number

Defined in: touch.ts:54


radius ​

radius: number

Defined in: touch.ts:55


x ​

x: number

Defined in: touch.ts:46

Analog position, -1 (left, up) to 1 (right, down), 0 when not held. Longer than 1 never.


y ​

y: number

Defined in: touch.ts:47