blob: ad45308626784667accf4955be9ec4567779e74b [file] [log] [blame]
jerrymf1579332013-02-07 01:56:28 +00001/*----------------------------------------------------------------------------*/
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
12/** GenericHID Interface
13 */
14class GenericHID
15{
16public:
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 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 button) = 0;
35};
36
37#endif
38