1#ifndef _CGENERICGAMEPADINPUT_H_
2#define _CGENERICGAMEPADINPUT_H_
10#ifdef FH_VISUALIZATION
12#pragma warning( disable : 4251 )
18 #ifdef FH_VISUALIZATION
19 class GenericGamepadInput:
public SimObject, OIS::JoyStickListener{
59 void OdeFcn(
const double T,
const double *
const X,
double *
const XDot,
const bool IsMajorTimeStep);
61#ifdef FH_VISUALIZATION
62 virtual void RenderInit(Ogre::Root*
const ogreRoot, ISimObjectCreator*
const creator);
63 virtual void RenderUpdate(
const double T,
const double*
const X );
64 bool buttonPressed(
const OIS::JoyStickEvent &arg,
int button);
65 bool buttonReleased(
const OIS::JoyStickEvent &arg,
int button);
66 bool axisMoved(
const OIS::JoyStickEvent &arg,
int axis);
67 bool povMoved(
const OIS::JoyStickEvent &arg,
int index);
69 const double *XAxis(
const double T,
const double*
const X); ;
70 const double *YAxis(
const double T,
const double*
const X); ;
71 const double *ZAxis(
const double T,
const double*
const X); ;
72 const double *XAxisrotation(
const double T,
const double*
const X); ;
73 const double *YAxisrotation(
const double T,
const double*
const X); ;
75 const double *POVVertical(
const double T,
const double*
const X); ;
76 const double *POVHorizontal(
const double T,
const double*
const X); ;
78 const double *XDotAxis(
const double T,
const double*
const X); ;
79 const double *YDotAxis(
const double T,
const double*
const X); ;
80 const double *ZDotAxis(
const double T,
const double*
const X); ;
81 const double *XDotAxisrotation(
const double T,
const double*
const X); ;
82 const double *YDotAxisrotation(
const double T,
const double*
const X); ;
84 const double *XIntAxis(
const double T,
const double*
const X); ;
85 const double *YIntAxis(
const double T,
const double*
const X); ;
86 const double *ZIntAxis(
const double T,
const double*
const X); ;
87 const double *XIntAxisrotation(
const double T,
const double*
const X); ;
88 const double *YIntAxisrotation(
const double T,
const double*
const X); ;
89 const double *POVIntVertical(
const double T,
const double*
const X); ;
90 const double *POVIntHorizontal(
const double T,
const double*
const X); ;
92 const double *Button1(
const double T,
const double*
const X);
93 const double *Button2(
const double T,
const double*
const X);
94 const double *Button3(
const double T,
const double*
const X);
95 const double *Button4(
const double T,
const double*
const X);
96 const double *Button5(
const double T,
const double*
const X);
97 const double *Button6(
const double T,
const double*
const X);
98 const double *Button7(
const double T,
const double*
const X);
99 const double *Button8(
const double T,
const double*
const X);
100 const double *Button9(
const double T,
const double*
const X);
101 const double *Button10(
const double T,
const double*
const X);
103 const double *AxisVector(
const double T,
const double*
const X); ;
104 const double *RotationVector(
const double T,
const double*
const X); ;
105 const double *ButtonVector(
const double T,
const double*
const X); ;
109 double m_invertVertical;
111 double m_axis[NUMAXIS];
112 double m_dotAxis[NUMAXIS];
113 double m_intAxis[NUMAXIS];
114 int m_stateAxis[NUMAXIS];
115 double m_rotation[NUMROTATION];
116 double m_dotRotation[NUMROTATION];
117 double m_intRotation[NUMROTATION];
118 int m_stateRotation[NUMROTATION];
119 double m_button[NUMBUTTON];
120 double m_pov[NUM_POV];
121 int m_statePov[NUM_POV];
Simple waypoint object.
Definition: CableAttach.h:16