Vixen
02b45cc4
csharp
public enum GamepadButton

A button on a gamepad, named by position rather than by legend.

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

Remarks

South, East, West and North are the four face buttons by where they sit in the diamond. Naming them A/B or Cross/Circle would embed one vendor's legends in the engine and then require a translation table for every other — including Nintendo, where A and B are swapped relative to Xbox, which is exactly the confusion the positional names remove. What the button is *labelled* is a presentation question, answered by GamepadKind when a prompt needs drawing.

Fields and properties (17)

  • None

    No button.

  • 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.

Used by (7)

  • DesktopGamepadVixen.Platform.Desktop
  • IGamepadVixen.Platform
  • InputKeyTestsVixen.Input.Tests
  • PlatformEventVixen.Platform
  • SdlTranslationVixen.Platform.Desktop
  • SdlTranslationTestsVixen.Platform.Desktop.Tests
  • PlatformInputTestsVixen.App.Tests