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

Represents a digital button on a PS4Controller. More...

#include <frc/PS4Controller.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 kShare = 9
 Share button. More...
 
static constexpr int kOptions = 10
 Option 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 PS4Controller.

Member Data Documentation

◆ kCircle

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

Circle button.

◆ kCross

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

X button.

◆ kL1

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

Left Trigger 1 button.

◆ kL2

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

Left Trigger 2 button.

◆ kL3

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

Left stick button.

◆ kOptions

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

Option button.

◆ kPS

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

PlayStation button.

◆ kR1

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

Right Trigger 1 button.

◆ kR2

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

Right Trigger 2 button.

◆ kR3

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

Right stick button.

◆ kShare

constexpr int frc::PS4Controller::Button::kShare = 9
staticconstexpr

Share button.

◆ kSquare

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

Square button.

◆ kTouchpad

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

Touchpad click button.

◆ kTriangle

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

Triangle button.


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