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

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

#include <frc/PS4Controller.h>

Static Public Attributes

static constexpr int kSquare = 1
 Square button.
 
static constexpr int kCross = 2
 Cross button.
 
static constexpr int kCircle = 3
 Circle button.
 
static constexpr int kTriangle = 4
 Triangle button.
 
static constexpr int kL1 = 5
 Left trigger 1 button.
 
static constexpr int kR1 = 6
 Right trigger 1 button.
 
static constexpr int kL2 = 7
 Left trigger 2 button.
 
static constexpr int kR2 = 8
 Right trigger 2 button.
 
static constexpr int kShare = 9
 Share button.
 
static constexpr int kOptions = 10
 Options button.
 
static constexpr int kL3 = 11
 L3 (left stick) button.
 
static constexpr int kR3 = 12
 R3 (right stick) button.
 
static constexpr int kPS = 13
 PlayStation button.
 
static constexpr int kTouchpad = 14
 Touchpad button.
 

Detailed Description

Represents a digital button on an PS4Controller.

Member Data Documentation

◆ kCircle

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

Circle button.

◆ kCross

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

Cross button.

◆ kL1

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

Left trigger 1 button.

◆ kL2

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

Left trigger 2 button.

◆ kL3

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

L3 (left stick) button.

◆ kOptions

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

Options button.

◆ kPS

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

PlayStation button.

◆ kR1

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

Right trigger 1 button.

◆ kR2

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

Right trigger 2 button.

◆ kR3

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

R3 (right stick) button.

◆ kShare

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

Share button.

◆ kSquare

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

Square button.

◆ kTouchpad

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

Touchpad button.

◆ kTriangle

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

Triangle button.


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