Skip to content

1681-engine / index / AimGestureOptions

Interface: AimGestureOptions ​

Defined in: src/input/AimGesture.ts:21

Properties ​

centre? ​

ts
optional centre?: number;

Defined in: src/input/AimGesture.ts:35

Inside this share of the radius the knob is back on the button (default 0.2).


centreCancels? ​

ts
optional centreCancels?: boolean;

Defined in: src/input/AimGesture.ts:27

The knob let go back on the button cancels rather than casting as a tap (default true).


earlySlop? ​

ts
optional earlySlop?: number;

Defined in: src/input/AimGesture.ts:31

The slop in a press's first pressMs (default 28).


pressMs? ​

ts
optional pressMs?: number;

Defined in: src/input/AimGesture.ts:33

How long a press is "landing" (default 180 ms).


radius ​

ts
radius: number;

Defined in: src/input/AimGesture.ts:23

The circle's radius, in the same units as the thumb's offsets (CSS px).


sensitivity? ​

ts
optional sensitivity?: number;

Defined in: src/input/AimGesture.ts:25

Scales the thumb's travel into the knob's (a sensitivity setting); the slops stay the thumb's own (default 1).


tapSlop? ​

ts
optional tapSlop?: number;

Defined in: src/input/AimGesture.ts:29

How far the thumb may wander before a press is a drag (default 10).

Released under the MIT License.