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?
optionalcaptureKeys?:boolean
Defined in: input.ts:36
Block the browser default for bound keys (page scrolling in embeds). Default true.
captureWheel?
optionalcaptureWheel?: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?
optionalkeyboardTarget?:Window|HTMLElement
Defined in: input.ts:34
Element receiving keyboard events. Default window.