WPILibC++ 2027.0.0-alpha-4
Loading...
Searching...
No Matches
wpi::Gamepad::Button Struct Reference

Represents a digital button on an Gamepad. More...

#include <wpi/driverstation/Gamepad.hpp>

Static Public Attributes

static constexpr int kSouthFace = 0
 South Face button.
static constexpr int kEastFace = 1
 East Face button.
static constexpr int kWestFace = 2
 West Face button.
static constexpr int kNorthFace = 3
 North Face button.
static constexpr int kBack = 4
 Back button.
static constexpr int kGuide = 5
 Guide button.
static constexpr int kStart = 6
 Start button.
static constexpr int kLeftStick = 7
 Left stick button.
static constexpr int kRightStick = 8
 Right stick button.
static constexpr int kLeftBumper = 9
 right bumper button.
static constexpr int kRightBumper = 10
 right bumper button.
static constexpr int kDpadUp = 11
 D-pad up button.
static constexpr int kDpadDown = 12
 D-pad down button.
static constexpr int kDpadLeft = 13
 D-pad left button.
static constexpr int kDpadRight = 14
 D-pad right button.
static constexpr int kMisc1 = 15
 Miscellaneous 1 button.
static constexpr int kRightPaddle1 = 16
 Right Paddle 1 button.
static constexpr int kLeftPaddle1 = 17
 Left Paddle 1 button.
static constexpr int kRightPaddle2 = 18
 Right Paddle 2 button.
static constexpr int kLeftPaddle2 = 19
 Left Paddle 2 button.
static constexpr int kTouchpad = 20
 Touchpad button.
static constexpr int kMisc2 = 21
 Miscellaneous 2 button.
static constexpr int kMisc3 = 22
 Miscellaneous 3 button.
static constexpr int kMisc4 = 23
 Miscellaneous 4 button.
static constexpr int kMisc5 = 24
 Miscellaneous 5 button.
static constexpr int kMisc6 = 25
 Miscellaneous 6 button.

Detailed Description

Represents a digital button on an Gamepad.

Member Data Documentation

◆ kBack

int wpi::Gamepad::Button::kBack = 4
staticconstexpr

Back button.

◆ kDpadDown

int wpi::Gamepad::Button::kDpadDown = 12
staticconstexpr

D-pad down button.

◆ kDpadLeft

int wpi::Gamepad::Button::kDpadLeft = 13
staticconstexpr

D-pad left button.

◆ kDpadRight

int wpi::Gamepad::Button::kDpadRight = 14
staticconstexpr

D-pad right button.

◆ kDpadUp

int wpi::Gamepad::Button::kDpadUp = 11
staticconstexpr

D-pad up button.

◆ kEastFace

int wpi::Gamepad::Button::kEastFace = 1
staticconstexpr

East Face button.

◆ kGuide

int wpi::Gamepad::Button::kGuide = 5
staticconstexpr

Guide button.

◆ kLeftBumper

int wpi::Gamepad::Button::kLeftBumper = 9
staticconstexpr

right bumper button.

◆ kLeftPaddle1

int wpi::Gamepad::Button::kLeftPaddle1 = 17
staticconstexpr

Left Paddle 1 button.

◆ kLeftPaddle2

int wpi::Gamepad::Button::kLeftPaddle2 = 19
staticconstexpr

Left Paddle 2 button.

◆ kLeftStick

int wpi::Gamepad::Button::kLeftStick = 7
staticconstexpr

Left stick button.

◆ kMisc1

int wpi::Gamepad::Button::kMisc1 = 15
staticconstexpr

Miscellaneous 1 button.

◆ kMisc2

int wpi::Gamepad::Button::kMisc2 = 21
staticconstexpr

Miscellaneous 2 button.

◆ kMisc3

int wpi::Gamepad::Button::kMisc3 = 22
staticconstexpr

Miscellaneous 3 button.

◆ kMisc4

int wpi::Gamepad::Button::kMisc4 = 23
staticconstexpr

Miscellaneous 4 button.

◆ kMisc5

int wpi::Gamepad::Button::kMisc5 = 24
staticconstexpr

Miscellaneous 5 button.

◆ kMisc6

int wpi::Gamepad::Button::kMisc6 = 25
staticconstexpr

Miscellaneous 6 button.

◆ kNorthFace

int wpi::Gamepad::Button::kNorthFace = 3
staticconstexpr

North Face button.

◆ kRightBumper

int wpi::Gamepad::Button::kRightBumper = 10
staticconstexpr

right bumper button.

◆ kRightPaddle1

int wpi::Gamepad::Button::kRightPaddle1 = 16
staticconstexpr

Right Paddle 1 button.

◆ kRightPaddle2

int wpi::Gamepad::Button::kRightPaddle2 = 18
staticconstexpr

Right Paddle 2 button.

◆ kRightStick

int wpi::Gamepad::Button::kRightStick = 8
staticconstexpr

Right stick button.

◆ kSouthFace

int wpi::Gamepad::Button::kSouthFace = 0
staticconstexpr

South Face button.

◆ kStart

int wpi::Gamepad::Button::kStart = 6
staticconstexpr

Start button.

◆ kTouchpad

int wpi::Gamepad::Button::kTouchpad = 20
staticconstexpr

Touchpad button.

◆ kWestFace

int wpi::Gamepad::Button::kWestFace = 2
staticconstexpr

West Face button.


The documentation for this struct was generated from the following file: