Skip to content

@relu-interactives/spatial-ecs


@relu-interactives/spatial-ecs / index / InputTuning

Type Alias: InputTuning ​

ts
type InputTuning = {
  stickDeadZone: number;
  pressThreshold: number;
  lookSensitivity: number;
  invertY: boolean;
  stickLookSpeed: number;
  touchLookScale: number;
};

Defined in: input/actions.ts:31

How sticks and sensitivity feel. The settings store writes the player's part.

Properties ​

PropertyTypeDescriptionDefined in
stickDeadZonenumberRadial dead zone for sticks, 0..1.input/actions.ts:33
pressThresholdnumberAn analog button (trigger) counts as pressed from here.input/actions.ts:35
lookSensitivitynumberMultiplies every look axis. 1 is the default feel.input/actions.ts:37
invertYboolean-input/actions.ts:38
stickLookSpeednumberA stick held fully over turns the view this many pixels a second, as a mouse would.input/actions.ts:40
touchLookScalenumberMultiplies a finger's drag on the look area.input/actions.ts:42