Skip to content

marble3 / TOUCH_ENABLED

Variable: TOUCH_ENABLED ​

const TOUCH_ENABLED: boolean

Defined in: src/player/player.ts:18

True on a touchscreen, or with ?touch in the page URL: a Player then gets on-screen controls. Read once, when the module loads; false outside a browser.