WPILibC++ 2025.1.1
Loading...
Searching...
No Matches
frc::XboxController::Button Struct Reference

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

#include <frc/XboxController.h>

Static Public Attributes

static constexpr int kA = 1
 A button.
 
static constexpr int kB = 2
 B button.
 
static constexpr int kX = 3
 X button.
 
static constexpr int kY = 4
 Y button.
 
static constexpr int kLeftBumper = 5
 Left bumper button.
 
static constexpr int kRightBumper = 6
 Right bumper button.
 
static constexpr int kBack = 7
 Back button.
 
static constexpr int kStart = 8
 Start button.
 
static constexpr int kLeftStick = 9
 Left stick button.
 
static constexpr int kRightStick = 10
 Right stick button.
 

Detailed Description

Represents a digital button on an XboxController.

Member Data Documentation

◆ kA

int frc::XboxController::Button::kA = 1
staticconstexpr

A button.

◆ kB

int frc::XboxController::Button::kB = 2
staticconstexpr

B button.

◆ kBack

int frc::XboxController::Button::kBack = 7
staticconstexpr

Back button.

◆ kLeftBumper

int frc::XboxController::Button::kLeftBumper = 5
staticconstexpr

Left bumper button.

◆ kLeftStick

int frc::XboxController::Button::kLeftStick = 9
staticconstexpr

Left stick button.

◆ kRightBumper

int frc::XboxController::Button::kRightBumper = 6
staticconstexpr

Right bumper button.

◆ kRightStick

int frc::XboxController::Button::kRightStick = 10
staticconstexpr

Right stick button.

◆ kStart

int frc::XboxController::Button::kStart = 8
staticconstexpr

Start button.

◆ kX

int frc::XboxController::Button::kX = 3
staticconstexpr

X button.

◆ kY

int frc::XboxController::Button::kY = 4
staticconstexpr

Y button.


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