Skip to content

Documentation / @debuffjp/input / Binding

Type Alias: Binding ​

Binding = string

Defined in: input.ts:13

A binding is a source name:

  • a KeyboardEvent.code: "Space", "KeyZ", "ArrowLeft"
  • "Pointer": primary mouse button / touch / pen
  • "PointerRight", "PointerMiddle": the right and middle mouse buttons
  • a gamepad button or stick direction: "PadA", "PadLeft", "PadStickLeft"
  • an on-screen control from TouchControls: "TouchStickLeft", "TouchA" (added in 0.25)