![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /******************************************************************************* 00002 ** Copyright (c) 2005 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 *******************************************************************************/ 00005 /******************************************************************************* 00006 ** $RCSfile: gndJoystickDesc.h,v $ $Revision: 1.7 $ $State: Exp $ 00007 *******************************************************************************/ 00008 00011 00013 00014 #ifndef DtGroundJoyDeviceControllerDescriptor_H_ 00015 #define DtGroundJoyDeviceControllerDescriptor_H_ 00016 00017 #include "vrfobjparam/compDesc.h" 00018 #include "vrfutil/rwInt.h" 00019 #include "vrfutil/rwBoolean.h" 00020 00026 00027 #include "vrfobjparam/vrfobjparamDefines.h" 00028 class DT_DLL_vrfobjparam DtGroundJoyDeviceControllerDescriptor : public DtComponentDescriptor 00029 { 00030 public: 00032 DtGroundJoyDeviceControllerDescriptor(const DtString& name, 00033 DtReaderWriterRegistry* parentRegistry = NULL); 00034 DtGroundJoyDeviceControllerDescriptor(const DtSymbolString& name, 00035 DtReaderWriterRegistry* parentRegistry = NULL); 00036 00038 virtual ~DtGroundJoyDeviceControllerDescriptor(); 00039 00041 DtGroundJoyDeviceControllerDescriptor( 00042 const DtGroundJoyDeviceControllerDescriptor& orig, 00043 DtReaderWriterRegistry* parentRegistry = NULL); 00044 00046 DtGroundJoyDeviceControllerDescriptor& operator=( 00047 const DtGroundJoyDeviceControllerDescriptor& orig); 00048 00049 virtual DtComponentDescriptor* clone(DtReaderWriterRegistry* 00050 parentRegistry = NULL) const; 00051 00054 virtual DtString type() const; 00055 00058 virtual void setSteeringAxis(int axis); 00059 virtual int steeringAxis() const; 00061 00064 virtual void setInvertSteeringAxis(bool invert); 00065 virtual bool invertSteeringAxis() const; 00067 00070 virtual void setThrottleAxis(int axis); 00071 virtual int throttleAxis() const; 00073 00076 virtual void setInvertThrottleAxis(bool invert); 00077 virtual bool invertThrottleAxis() const; 00079 00082 virtual void setBrakeButton(int button); 00083 virtual int brakeButton() const; 00085 00088 virtual void setForwardGearButton(int button); 00089 virtual int forwardGearButton() const; 00091 00094 virtual void setReverseGearButton(int button); 00095 virtual int reverseGearButton() const; 00097 00099 static DtComponentDescriptor * creator(); 00100 00101 protected: 00103 virtual void setDefaults(); 00104 00106 virtual void copyValues(const DtGroundJoyDeviceControllerDescriptor& orig); 00107 00108 protected: 00110 DtGroundJoyDeviceControllerDescriptor(); 00111 00112 protected: 00113 00117 00121 DtRwInt mySteeringAxis; 00122 00126 DtRwBoolean myInvertSteeringAxis; 00127 00131 DtRwInt myThrottleAxis; 00132 00136 DtRwBoolean myInvertThrottleAxis; 00137 00138 00142 DtRwInt myBrakeButton; 00143 00147 DtRwInt myForwardGearButton; 00148 00152 DtRwInt myReverseGearButton; 00153 00155 00157 static const char theSteeringAxisName[]; 00158 static const char theInvertSteeringAxisName[]; 00159 static const char theThrottleAxisName[]; 00160 static const char theInvertThrottleAxisName[]; 00161 static const char theBrakeButtonName[]; 00162 static const char theForwardGearButtonName[]; 00163 static const char theReverseGearButtonName[]; 00164 }; 00165 00166 #endif