Vixen
02b45cc4
csharp
public enum GamepadControl

A control on a gamepad.

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

Remarks

Buttons keep the positional names Vixen.Platform.GamepadButton uses and the same values, so the bridge casts. Axes are numbered above them in one enum rather than split into two, because a binding path names one control and the parser should not have to know which half to look in before it can tell whether leftTrigger exists.

Fields and properties (25)

  • None

    No control.

  • South

    Bottom face button: A on Xbox, ✕ on PlayStation, B on Nintendo.

  • East

    Right face button: B on Xbox, ○ on PlayStation, A on Nintendo.

  • West

    Left face button: X on Xbox, □ on PlayStation, Y on Nintendo.

  • North

    Top face button: Y on Xbox, △ on PlayStation, X on Nintendo.

  • Back

    The left-hand small button: View, Share, -.

  • Guide

    The vendor button in the middle: Guide, PS, Home.

  • Start

    The right-hand small button: Menu, Options, +.

  • LeftStick

    The left stick pressed in.

  • RightStick

    The right stick pressed in.

  • LeftShoulder

    The upper left shoulder button.

  • RightShoulder

    The upper right shoulder button.

  • DPadUp

    Up on the directional pad.

  • DPadDown

    Down on the directional pad.

  • DPadLeft

    Left on the directional pad.

  • DPadRight

    Right on the directional pad.

  • Touchpad

    The touchpad pressed in, on controllers that have one.

  • LeftStickX

    Left stick, horizontal, [-1, 1]. Negative is left.

  • LeftStickY

    Left stick, vertical, [-1, 1]. Negative is up.

  • RightStickX

    Right stick, horizontal, [-1, 1]. Negative is left.

  • RightStickY

    Right stick, vertical, [-1, 1]. Negative is up.

  • LeftTrigger

    Left trigger, [0, 1].

  • RightTrigger

    Right trigger, [0, 1].

  • DPadX

    The directional pad read as a horizontal axis, -1, 0 or 1.

  • DPadY

    The directional pad read as a vertical axis. Negative is up, matching the sticks.

Used by (10)

  • GamepadDeviceVixen.Input
  • InputActionTestsVixen.Input.Tests
  • InputControlVixen.Input
  • InputControlPathVixen.Input
  • InputControlPathTestsVixen.Input.Tests
  • InputDeviceSetVixen.Input
  • InputKeyTestsVixen.Input.Tests
  • InputRebindingTestsVixen.Input.Tests
  • PlatformInputVixen.App.Hosting
  • PlatformInputTestsVixen.App.Tests