Vixen
02b45cc4
csharp
public enum GamepadAxis

An analogue axis on a gamepad.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

Stick axes are reported in [-1, 1] with up and left negative, matching the engine's screen convention (docs/plan/03). Triggers are reported in [0, 1], because a trigger has a rest position rather than a centre and mapping it onto a signed range makes every consumer undo the mapping.

Fields and properties (7)

  • None

    No axis.

  • LeftStickX

    Left stick, horizontal. Negative is left.

  • LeftStickY

    Left stick, vertical. Negative is up.

  • RightStickX

    Right stick, horizontal. Negative is left.

  • RightStickY

    Right stick, vertical. Negative is up.

  • LeftTrigger

    Left trigger, [0, 1].

  • RightTrigger

    Right trigger, [0, 1].

Used by (10)

  • DesktopGamepadVixen.Platform.Desktop
  • DesktopPlatformVixen.Platform.Desktop
  • IGamepadVixen.Platform
  • InputKeyTestsVixen.Input.Tests
  • PlatformEventVixen.Platform
  • PlatformEventTestsVixen.Platform.Tests
  • PlatformInputVixen.App.Hosting
  • SdlTranslationVixen.Platform.Desktop
  • SdlTranslationTestsVixen.Platform.Desktop.Tests
  • PlatformInputTestsVixen.App.Tests