WPILibC++ 2024.3.2
frc::PS5Controller::Button Struct Reference

Represents a digital button on a PS5Controller. More...

#include <frc/PS5Controller.h>

Static Public Attributes

static constexpr int kSquare = 1
 Square button. More...
 
static constexpr int kCross = 2
 X button. More...
 
static constexpr int kCircle = 3
 Circle button. More...
 
static constexpr int kTriangle = 4
 Triangle button. More...
 
static constexpr int kL1 = 5
 Left trigger 1 button. More...
 
static constexpr int kR1 = 6
 Right trigger 1 button. More...
 
static constexpr int kL2 = 7
 Left trigger 2 button. More...
 
static constexpr int kR2 = 8
 Right trigger 2 button. More...
 
static constexpr int kCreate = 9
 Create button. More...
 
static constexpr int kOptions = 10
 Options button. More...
 
static constexpr int kL3 = 11
 Left stick button. More...
 
static constexpr int kR3 = 12
 Right stick button. More...
 
static constexpr int kPS = 13
 PlayStation button. More...
 
static constexpr int kTouchpad = 14
 Touchpad click button. More...
 

Detailed Description

Represents a digital button on a PS5Controller.

Member Data Documentation

◆ kCircle

constexpr int frc::PS5Controller::Button::kCircle = 3
staticconstexpr

Circle button.

◆ kCreate

constexpr int frc::PS5Controller::Button::kCreate = 9
staticconstexpr

Create button.

◆ kCross

constexpr int frc::PS5Controller::Button::kCross = 2
staticconstexpr

X button.

◆ kL1

constexpr int frc::PS5Controller::Button::kL1 = 5
staticconstexpr

Left trigger 1 button.

◆ kL2

constexpr int frc::PS5Controller::Button::kL2 = 7
staticconstexpr

Left trigger 2 button.

◆ kL3

constexpr int frc::PS5Controller::Button::kL3 = 11
staticconstexpr

Left stick button.

◆ kOptions

constexpr int frc::PS5Controller::Button::kOptions = 10
staticconstexpr

Options button.

◆ kPS

constexpr int frc::PS5Controller::Button::kPS = 13
staticconstexpr

PlayStation button.

◆ kR1

constexpr int frc::PS5Controller::Button::kR1 = 6
staticconstexpr

Right trigger 1 button.

◆ kR2

constexpr int frc::PS5Controller::Button::kR2 = 8
staticconstexpr

Right trigger 2 button.

◆ kR3

constexpr int frc::PS5Controller::Button::kR3 = 12
staticconstexpr

Right stick button.

◆ kSquare

constexpr int frc::PS5Controller::Button::kSquare = 1
staticconstexpr

Square button.

◆ kTouchpad

constexpr int frc::PS5Controller::Button::kTouchpad = 14
staticconstexpr

Touchpad click button.

◆ kTriangle

constexpr int frc::PS5Controller::Button::kTriangle = 4
staticconstexpr

Triangle button.


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