VR-Forces 4.3.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
groundJoyDeviceControllerDescriptor.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2005 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: gndJoystickDesc.h,v $ $Revision: 1.7 $ $State: Exp $
7 *******************************************************************************/
8 
11 
13 
14 #ifndef DtGroundJoyDeviceControllerDescriptor_H_
15 #define DtGroundJoyDeviceControllerDescriptor_H_
16 
18 #include "vrfutil/rwInt.h"
19 #include "vrfutil/rwBoolean.h"
20 
26 
29 {
30 public:
33  DtReaderWriterRegistry* parentRegistry = NULL);
34  DtGroundJoyDeviceControllerDescriptor(const DtSymbolString& name,
35  DtReaderWriterRegistry* parentRegistry = NULL);
36 
39 
43  DtReaderWriterRegistry* parentRegistry = NULL);
44 
48 
50  parentRegistry = NULL) const;
51 
54  virtual DtString type() const;
55 
58  virtual void setSteeringAxis(int axis);
59  virtual int steeringAxis() const;
61 
64  virtual void setInvertSteeringAxis(bool invert);
65  virtual bool invertSteeringAxis() const;
67 
70  virtual void setThrottleAxis(int axis);
71  virtual int throttleAxis() const;
73 
76  virtual void setInvertThrottleAxis(bool invert);
77  virtual bool invertThrottleAxis() const;
79 
82  virtual void setBrakeButton(int button);
83  virtual int brakeButton() const;
85 
88  virtual void setForwardGearButton(int button);
89  virtual int forwardGearButton() const;
91 
94  virtual void setReverseGearButton(int button);
95  virtual int reverseGearButton() const;
97 
99  static DtComponentDescriptor * creator();
100 
101 protected:
103  virtual void setDefaults();
104 
106  virtual void copyValues(const DtGroundJoyDeviceControllerDescriptor& orig);
107 
108 protected:
111 
112 protected:
113 
117 
122 
127 
132 
137 
138 
143 
148 
153 
155 
157  static const char theSteeringAxisName[];
158  static const char theInvertSteeringAxisName[];
159  static const char theThrottleAxisName[];
160  static const char theInvertThrottleAxisName[];
161  static const char theBrakeButtonName[];
162  static const char theForwardGearButtonName[];
163  static const char theReverseGearButtonName[];
164 };
165 
166 #endif

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)