Talos docs

InputConfig

Since 0.6
Plain text

Signature

export interface InputConfig {
  bindings: Bindings
  /**
   * Radial deadzone applied to every axis, 0..0.9.
   *
   * Zero by default, and that is deliberate: the engine has already applied the deadzone
   * `meta.input` gives each action, so a second one here would compound them and a scene
   * author who set 0.15 would get 0.28. Set it only to narrow one behavior's view further.
   */
  deadzone: number
  /** Multiplier on the look axis, per component. A player preference, not scene data. */
  lookSensitivity: Vec2
  /** Invert the look axis, per component. A player preference, not scene data. */
  invertLook: [boolean, boolean]
}

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

Members

MemberSignatureDescription
bindingsbindings: Bindings
deadzonedeadzone: numberRadial deadzone applied to every axis, 0..0.9. Zero by default, and that is deliberate: the engine has already applied the deadzone meta.input gives each action, so a second one here would compound them and a scene author who set 0.15 would get 0.28. Set it only to narrow one behavior's view further.
lookSensitivitylookSensitivity: Vec2Multiplier on the look axis, per component. A player preference, not scene data.
invertLookinvertLook: [boolean, boolean]Invert the look axis, per component. A player preference, not scene data.