Skip to content

Documentation / @debuffjp/input / InputOptions

Interface: InputOptions<A> ​

Defined in: input.ts:30

Type Parameters ​

A ​

A extends string

Properties ​

bindings ​

bindings: Bindings<A>

Defined in: input.ts:32

Named actions and the sources that trigger them.


captureKeys? ​

optional captureKeys?: boolean

Defined in: input.ts:36

Block the browser default for bound keys (page scrolling in embeds). Default true.


captureWheel? ​

optional captureWheel?: boolean

Defined in: input.ts:38

Block page scrolling while the wheel is over the canvas, for games that zoom with it. Default false.


keyboardTarget? ​

optional keyboardTarget?: Window | HTMLElement

Defined in: input.ts:34

Element receiving keyboard events. Default window.