Skip to content

KeyboardOptions

Options of keyboard().

optional player?: number

Whose movements (default 1); another player can get other keys (e.g. WASD). Not given and played with the remote: the child playing now, following the turns (at a turn the lane is the middle one again, as the screen recentres the puppet).


optional target?: KeyTarget

Where the keys go: by default the page (domKeys()).


optional setTimeout?: (fn, ms) => unknown

The timer for taps and releases (tests).

() => void

number

unknown