WPILibC++  unspecified
frc::GamepadBase Class Referenceabstract

Gamepad Interface. More...

#include <GamepadBase.h>

Inheritance diagram for frc::GamepadBase:
Collaboration diagram for frc::GamepadBase:

Public Member Functions

 GamepadBase (int port)
 
virtual bool GetBumper (JoystickHand hand=kRightHand) const =0
 
virtual bool GetStickButton (JoystickHand hand) const =0
 
- Public Member Functions inherited from frc::GenericHID
 GenericHID (int port)
 
virtual double GetX (JoystickHand hand=kRightHand) const =0
 
virtual double GetY (JoystickHand hand=kRightHand) const =0
 
virtual double GetRawAxis (int axis) const
 Get the value of the axis. More...
 
bool GetRawButton (int button) const
 Get the button value (starting at button 1) More...
 
int GetPOV (int pov=0) const
 Get the angle in degrees of a POV on the HID. More...
 
int GetPOVCount () const
 Get the number of POVs for the HID. More...
 
int GetPort () const
 Get the port number of the HID. More...
 
GenericHID::HIDType GetType () const
 Get the type of the HID. More...
 
std::string GetName () const
 Get the name of the HID. More...
 
void SetOutput (int outputNumber, bool value)
 Set a single HID output value for the HID. More...
 
void SetOutputs (int value)
 Set all output values for the HID. More...
 
void SetRumble (RumbleType type, double value)
 Set the rumble output for the HID. More...
 

Additional Inherited Members

- Public Types inherited from frc::GenericHID
enum  RumbleType { kLeftRumble, kRightRumble }
 
enum  HIDType {
  kUnknown = -1, kXInputUnknown = 0, kXInputGamepad = 1, kXInputWheel = 2,
  kXInputArcadeStick = 3, kXInputFlightStick = 4, kXInputDancePad = 5, kXInputGuitar = 6,
  kXInputGuitar2 = 7, kXInputDrumKit = 8, kXInputGuitar3 = 11, kXInputArcadePad = 19,
  kHIDJoystick = 20, kHIDGamepad = 21, kHIDDriving = 22, kHIDFlight = 23,
  kHID1stPerson = 24
}
 
enum  JoystickHand { kLeftHand = 0, kRightHand = 1 }
 

Detailed Description

Gamepad Interface.


The documentation for this class was generated from the following files: