marble3 / suspendInput
Function: suspendInput()
suspendInput(
player,cursor?):void
Defined in: src/input-lock.ts:8
Takes control away from the player while modal UI is up: stops look and movement, releases pointer lock and, given a cursor, turns it off. Pair it with restoreInput.
Parameters
player
cursor?
Returns
void