Now you can download a copy of these docs so you can use them offline! Download now
GenericHID.h
1 /*----------------------------------------------------------------------------*/
2 /* Copyright (c) FIRST 2008. All Rights Reserved. */
3 /* Open Source Software - may be modified and shared by FRC teams. The code */
4 /* must be accompanied by the FIRST BSD license file in $(WIND_BASE)/WPILib. */
5 /*----------------------------------------------------------------------------*/
6 
7 #ifndef GENERIC_HID_H
8 #define GENERIC_HID_H
9 
10 #include <vxWorks.h>
11 
15 {
16 public:
17  typedef enum {
18  kLeftHand = 0,
19  kRightHand = 1
20  } JoystickHand;
21 
22  virtual ~GenericHID() {}
23 
24  virtual float GetX(JoystickHand hand = kRightHand) = 0;
25  virtual float GetY(JoystickHand hand = kRightHand) = 0;
26  virtual float GetZ() = 0;
27  virtual float GetTwist() = 0;
28  virtual float GetThrottle() = 0;
29  virtual float GetRawAxis(uint32_t axis) = 0;
30 
31  virtual bool GetTrigger(JoystickHand hand = kRightHand) = 0;
32  virtual bool GetTop(JoystickHand hand = kRightHand) = 0;
33  virtual bool GetBumper(JoystickHand hand = kRightHand) = 0;
34  virtual bool GetRawButton(uint32_t button) = 0;
35 };
36 
37 #endif
38 

Generated on Sat Apr 26 2014 12:26:45 for WPILibC++ by doxygen 1.8.6