7 #ifndef __KINECT_STICK_H__
8 #define __KINECT_STICK_H__
10 #include "ErrorBase.h"
11 #include "GenericHID.h"
24 virtual float GetX(JoystickHand hand = kRightHand);
25 virtual float GetY(JoystickHand hand = kRightHand);
31 virtual bool GetTrigger(JoystickHand hand = kRightHand);
32 virtual bool GetTop(JoystickHand hand = kRightHand);
33 virtual bool GetBumper(JoystickHand hand = kRightHand);
38 float ConvertRawToFloat(int8_t charValue);
48 unsigned char axis[6];
49 unsigned short buttons;
56 static uint32_t _recentPacketNumber;
57 static KinectStickData _sticks;
Definition: KinectStick.h:20
virtual float GetRawAxis(uint32_t axis)
Definition: KinectStick.cpp:103
virtual float GetZ()
Definition: KinectStick.cpp:70
virtual bool GetTrigger(JoystickHand hand=kRightHand)
Definition: KinectStick.cpp:118
virtual bool GetTop(JoystickHand hand=kRightHand)
Definition: KinectStick.cpp:129
KinectStick(int id)
Definition: KinectStick.cpp:28
virtual bool GetRawButton(uint32_t button)
Definition: KinectStick.cpp:155
virtual float GetTwist()
Definition: KinectStick.cpp:81
virtual bool GetBumper(JoystickHand hand=kRightHand)
Definition: KinectStick.cpp:140
Definition: ErrorBase.h:37
virtual float GetX(JoystickHand hand=kRightHand)
Definition: KinectStick.cpp:47
virtual float GetThrottle()
Definition: KinectStick.cpp:92
virtual float GetY(JoystickHand hand=kRightHand)
Definition: KinectStick.cpp:58
Definition: GenericHID.h:14