VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
joyDeviceManager.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2000 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: joyDevMgr.h,v $ $Revision: 1.15 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 #ifndef DtJoyDeviceManager_H_
13 #define DtJoyDeviceManager_H_
14 
15 #ifdef WIN32
16 #define _WINSOCKAPI_
17 #include <WTYPES.H>
18 #endif
19 
20 
21 #include "vrfutil/readerWriter.h"
22 #include "vrfutil/rwReal.h"
23 #include "vrfutil/rwInt.h"
24 #include "vrfutil/rwString.h"
25 #include "vrfobjcore/vrfObject.h"
26 
29 
30 class DtSimManager;
31 class DtJoyDevice;
32 class DtSimMessage;
34 
35 struct DtJoyInit;
36 
39 {
40 public:
41  DtJoyDeviceManager(const DtString& name, DtSimManager* simManager,
42  DtReaderWriterRegistry* parentRegistry = NULL);
43  DtJoyDeviceManager(const DtSymbolString& name, DtSimManager* simManager,
44  DtReaderWriterRegistry* parentRegistry = NULL);
45 
47  virtual ~DtJoyDeviceManager();
48 
50  virtual bool init();
51 
53  virtual void tick();
54 
56  virtual DtJoyDevice * joyDevice();
57 
59  virtual bool chooseDevice();
60 
61  virtual const DtJoyInit getDefaults();
62 
63 #ifdef WIN32
64 
65  virtual void setAppInstance(HINSTANCE hInstance);
66  virtual void setConsoleWindow(HWND consoleWindow);
67 #endif
68 
69 protected:
70 
72  static void joyDeviceRequestCallback(DtSimMessage* msg, void* usr);
73 
75  virtual void processJoyDeviceRequest(DtIfJoyDeviceRequest* request);
76 
79 
81  virtual void setDefaults();
82 
85 
88 
89  DtJoyDevice* myJoyDevice;
93 
94 
97 
103 
109 
110 #if 0
111  int myNtOrbPort;
112 #endif
113 
115 
117 
118 #ifdef WIN32
119  HINSTANCE myAppInstance;
120  HWND myConsoleWindow;
121 #endif
122 
123  static const char theDeviceTypeName[];
124 
125  static const char theTransSensitivityName[];
126 
127  static const char theTransGainName[];
128  static const char theTransInvertXName[];
129  static const char theTransInvertYName[];
130  static const char theTransInvertZName[];
131 
132  static const char theRotSensitivityName[];
133  static const char theRotGainName[];
134  static const char theRotInvertXName[];
135  static const char theRotInvertYName[];
136  static const char theRotInvertZName[];
137 
138  static const char theWantPOVName[];
139 
140  static const char theLinuxDeviceName[];
141 };
142 
143 #endif

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)