Cheetah Software
1.0
|
#include <GamepadCommand.h>
Public Member Functions | |
GamepadCommand () | |
void | zero () |
void | set (const gamepad_lcmt *lcmt) |
void | get (gamepad_lcmt *lcmt) |
void | applyDeadband (float f) |
std::string | toString () |
Public Attributes | |
bool | leftBumper |
bool | rightBumper |
bool | leftTriggerButton |
bool | rightTriggerButton |
bool | back |
bool | start |
bool | a |
bool | b |
bool | x |
bool | y |
bool | leftStickButton |
bool | rightStickButton |
bool | logitechButton |
Vec2< float > | leftStickAnalog |
Vec2< float > | rightStickAnalog |
float | leftTriggerAnalog |
float | rightTriggerAnalog |
Definition at line 12 of file GamepadCommand.h.
|
inline |
Definition at line 13 of file GamepadCommand.h.
References zero().
|
inline |
The Logitech F310's seem to do a bad job of returning to zero exactly, so a deadband around zero is useful when integrating joystick commands
Definition at line 87 of file GamepadCommand.h.
References deadband(), and eigenDeadband().
|
inline |
Definition at line 62 of file GamepadCommand.h.
References a, b, back, leftBumper, leftStickButton, leftTriggerAnalog, leftTriggerButton, rightBumper, rightStickButton, rightTriggerAnalog, rightTriggerButton, start, x, and y.
|
inline |
|
inline |
Definition at line 94 of file GamepadCommand.h.
References boolToString(), and eigenToString().
|
inline |
bool GamepadCommand::a |
Definition at line 15 of file GamepadCommand.h.
bool GamepadCommand::b |
Definition at line 15 of file GamepadCommand.h.
bool GamepadCommand::back |
Definition at line 15 of file GamepadCommand.h.
bool GamepadCommand::leftBumper |
Definition at line 15 of file GamepadCommand.h.
Vec2<float> GamepadCommand::leftStickAnalog |
Definition at line 18 of file GamepadCommand.h.
bool GamepadCommand::leftStickButton |
Definition at line 15 of file GamepadCommand.h.
float GamepadCommand::leftTriggerAnalog |
Definition at line 19 of file GamepadCommand.h.
bool GamepadCommand::leftTriggerButton |
Definition at line 15 of file GamepadCommand.h.
bool GamepadCommand::logitechButton |
Definition at line 15 of file GamepadCommand.h.
bool GamepadCommand::rightBumper |
Definition at line 15 of file GamepadCommand.h.
Vec2<float> GamepadCommand::rightStickAnalog |
Definition at line 18 of file GamepadCommand.h.
bool GamepadCommand::rightStickButton |
Definition at line 15 of file GamepadCommand.h.
float GamepadCommand::rightTriggerAnalog |
Definition at line 19 of file GamepadCommand.h.
bool GamepadCommand::rightTriggerButton |
Definition at line 15 of file GamepadCommand.h.
bool GamepadCommand::start |
Definition at line 15 of file GamepadCommand.h.
bool GamepadCommand::x |
Definition at line 15 of file GamepadCommand.h.
bool GamepadCommand::y |
Definition at line 15 of file GamepadCommand.h.