WPILibC++  unspecified
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Pages
frc::JoystickBase Class Referenceabstract

Joystick Interface. More...

#include <JoystickBase.h>

Inheritance diagram for frc::JoystickBase:
frc::GenericHID frc::Joystick

Public Member Functions

 JoystickBase (int port)
 
virtual double GetZ (JoystickHand hand=kRightHand) const =0
 
virtual double GetTwist () const =0
 
virtual double GetThrottle () const =0
 
virtual bool GetTrigger (JoystickHand hand=kRightHand) const =0
 
virtual bool GetTop (JoystickHand hand=kRightHand) 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

Joystick Interface.


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