1681-engine / index / TouchEnv
Interface: TouchEnv ​
Defined in: src/input/touchDetect.ts:2
What decides whether the touch controls are shown; read off the browser by isTouchUi (platform/touch.ts).
Properties ​
coarse ​
ts
coarse: boolean;Defined in: src/input/touchDetect.ts:6
(pointer: coarse) matches: the primary pointer is a finger.
native ​
ts
native: boolean;Defined in: src/input/touchDetect.ts:4
Running inside a native shell (setNativeShell: Capacitor, a kiosk…).
override ​
ts
override: string | null;Defined in: src/input/touchDetect.ts:10
?touch=1|0 in the URL or localStorage (setTouchOverrideKey), for trying the controls on a desktop browser.
touchPoints ​
ts
touchPoints: number;Defined in: src/input/touchDetect.ts:8
navigator.maxTouchPoints.