InputConfig
Since 0.6
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
| Member | Signature | Description |
|---|---|---|
bindings | bindings: Bindings | |
deadzone | deadzone: number | 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. |
lookSensitivity | lookSensitivity: Vec2 | Multiplier on the look axis, per component. A player preference, not scene data. |
invertLook | invertLook: [boolean, boolean] | Invert the look axis, per component. A player preference, not scene data. |