WPILibC++ 2027.0.0-alpha-4
Loading...
Searching...
No Matches
wpi::Gamepad::Axis Struct Reference

Represents an axis on an Gamepad. More...

#include <wpi/driverstation/Gamepad.hpp>

Static Public Attributes

static constexpr int kLeftX = 0
 Left X axis.
static constexpr int kLeftY = 1
 Left Y axis.
static constexpr int kRightX = 2
 Right X axis.
static constexpr int kRightY = 3
 Right Y axis.
static constexpr int kLeftTrigger = 4
 Left trigger.
static constexpr int kRightTrigger = 5
 Right trigger.

Detailed Description

Represents an axis on an Gamepad.

Member Data Documentation

◆ kLeftTrigger

int wpi::Gamepad::Axis::kLeftTrigger = 4
staticconstexpr

Left trigger.

◆ kLeftX

int wpi::Gamepad::Axis::kLeftX = 0
staticconstexpr

Left X axis.

◆ kLeftY

int wpi::Gamepad::Axis::kLeftY = 1
staticconstexpr

Left Y axis.

◆ kRightTrigger

int wpi::Gamepad::Axis::kRightTrigger = 5
staticconstexpr

Right trigger.

◆ kRightX

int wpi::Gamepad::Axis::kRightX = 2
staticconstexpr

Right X axis.

◆ kRightY

int wpi::Gamepad::Axis::kRightY = 3
staticconstexpr

Right Y axis.


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