Skip to content

1681-engine / index / setTouchOverrideKey

Function: setTouchOverrideKey() ​

ts
function setTouchOverrideKey(key): void;

Defined in: src/platform/touch.ts:17

The localStorage key that forces the touch controls on or off ('1'/'0', beside ?touch=1|0 in the URL), for trying them on a desktop browser. A game names its own so its players' saved choice carries over.

Parameters ​

ParameterType
keystring

Returns ​

void

Released under the MIT License.