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

Represents an axis on a PS4Controller. More...

#include <frc/PS4Controller.h>

Static Public Attributes

static constexpr int kLeftX = 0
 Left X axis. More...
 
static constexpr int kLeftY = 1
 Left Y axis. More...
 
static constexpr int kRightX = 2
 Right X axis. More...
 
static constexpr int kRightY = 5
 Right Y axis. More...
 
static constexpr int kL2 = 3
 Left Trigger 2. More...
 
static constexpr int kR2 = 4
 Right Trigger 2. More...
 

Detailed Description

Represents an axis on a PS4Controller.

Member Data Documentation

◆ kL2

constexpr int frc::PS4Controller::Axis::kL2 = 3
staticconstexpr

Left Trigger 2.

◆ kLeftX

constexpr int frc::PS4Controller::Axis::kLeftX = 0
staticconstexpr

Left X axis.

◆ kLeftY

constexpr int frc::PS4Controller::Axis::kLeftY = 1
staticconstexpr

Left Y axis.

◆ kR2

constexpr int frc::PS4Controller::Axis::kR2 = 4
staticconstexpr

Right Trigger 2.

◆ kRightX

constexpr int frc::PS4Controller::Axis::kRightX = 2
staticconstexpr

Right X axis.

◆ kRightY

constexpr int frc::PS4Controller::Axis::kRightY = 5
staticconstexpr

Right Y axis.


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