Skip to content

LegacyNavigationBindings

interludesoftware.tick

Interlude.Tick

LegacyNavigationBindings Class

Navigation bindings for the legacy UnityEngine.Input backend. Each action binds a list of UnityEngine.KeyCodes — any key, including JoystickButton0–19 for controller buttons.

Sticks and the D-pad have no UnityEngine.KeyCode, so they are read from project-defined Input Manager axes and mapped to the four directions when their respective Use* toggle is set. Add the axes under Project Settings > Input Manager; if they are absent the source is skipped after a single warning.

The D-pad is on by default. Left- and right-stick are off by default because Unity's stock Horizontal / Vertical axes cover both WASD and the left stick, which would make character movement double as menu navigation. Opt in with axis names you own and don't share with gameplay (for example NavLeftStickH / NavLeftStickV).

public class LegacyNavigationBindings : Interlude.Tick.NavigationBindings

Inheritance System.ObjectNavigationBindings → LegacyNavigationBindings

Fields

LegacyNavigationBindings.DpadHorizontalAxis Field

Input Manager axis read for D-pad left/right (negative = left).

public string DpadHorizontalAxis;

Field Value

System.String

LegacyNavigationBindings.DpadVerticalAxis Field

Input Manager axis read for D-pad up/down (positive = up).

public string DpadVerticalAxis;

Field Value

System.String

LegacyNavigationBindings.LeftStickHorizontalAxis Field

Input Manager axis read for left-stick left/right (negative = left).

public string LeftStickHorizontalAxis;

Field Value

System.String

LegacyNavigationBindings.LeftStickThreshold Field

Magnitude the left stick must cross before it triggers a navigation step.

public float LeftStickThreshold;

Field Value

System.Single

LegacyNavigationBindings.LeftStickVerticalAxis Field

Input Manager axis read for left-stick up/down (positive = up).

public string LeftStickVerticalAxis;

Field Value

System.String

LegacyNavigationBindings.RightStickHorizontalAxis Field

Input Manager axis read for right-stick left/right (negative = left).

public string RightStickHorizontalAxis;

Field Value

System.String

LegacyNavigationBindings.RightStickThreshold Field

Magnitude the right stick must cross before it triggers a navigation step.

public float RightStickThreshold;

Field Value

System.Single

LegacyNavigationBindings.RightStickVerticalAxis Field

Input Manager axis read for right-stick up/down (positive = up).

public string RightStickVerticalAxis;

Field Value

System.String

LegacyNavigationBindings.UseDpad Field

Map the D-pad axes to the four directional actions.

public bool UseDpad;

Field Value

System.Boolean

LegacyNavigationBindings.UseLeftStick Field

Map the left-stick axes to the four directional actions.

public bool UseLeftStick;

Field Value

System.Boolean

LegacyNavigationBindings.UseRightStick Field

Map the right-stick axes to the four directional actions.

public bool UseRightStick;

Field Value

System.Boolean