Talos docs

InputActionDoc

Since 0.6

One action's bindings, as meta.input.contexts.<context>.<action> spells them.

Plain text

Signature

export interface InputActionDoc {
  kind: InputKind
  keys?: string[]
  mouse?: "delta" | "wheel" | "left" | "right" | "middle"
  gamepad?: string
  /** A touch-screen source: a screen region and what a finger in it does. Absent: no touch source. */
  touch?: TouchBindingDoc
  deadzone?: number
  sensitivity?: number
  toggle?: boolean
}

Import: import type { InputActionDoc } from "@argus/gameplay"

Members

MemberSignatureDescription
kindkind: InputKind
keyskeys?: string[]
mousemouse?: "delta" | "wheel" | "left" | "right" | "middle"
gamepadgamepad?: string
touchtouch?: TouchBindingDocA touch-screen source: a screen region and what a finger in it does. Absent: no touch source.
deadzonedeadzone?: number
sensitivitysensitivity?: number
toggletoggle?: boolean