Changeset 1656 for code/branches/gui/src/core/input/InputManager.h
- Timestamp:
- Aug 10, 2008, 9:43:50 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gui/src/core/input/InputManager.h
r1653 r1656 55 55 { 56 56 public: 57 int operator[](unsigned int index) { return povStates[index]; }57 int& operator[](unsigned int index) { return povStates[index]; } 58 58 int povStates[4]; 59 59 }; … … 90 90 91 91 public: 92 enum InputManagerState 93 { 94 Uninitialised = 0, 95 Ready = 1, 96 Ticking = 2, 97 Calibrating = 4, 98 ReloadRequest = 8, 99 JoyStickSupport = 16 // used with ReloadRequest to store a bool 100 }; 101 92 102 InputManager (); 93 103 ~InputManager(); 94 104 95 bool initialise(const size_t windowHnd, int windowWidth, int windowHeight, 96 bool createKeyboard = true, bool createMouse = true, bool createJoySticks = false); 105 void initialise(size_t windowHnd, int windowWidth, int windowHeight, bool joyStickSupport = true); 106 107 void reloadInputSystem(bool joyStickSupport = true); 97 108 98 109 int numberOfKeyboards() { return keyboard_ ? 1 : 0; } … … 134 145 135 146 // Intenal methods 136 bool_initialiseKeyboard();137 bool_initialiseMouse();138 bool_initialiseJoySticks();147 void _initialiseKeyboard(); 148 void _initialiseMouse(); 149 void _initialiseJoySticks(); 139 150 void _redimensionLists(); 140 151 … … 143 154 void _destroyJoySticks(); 144 155 void _destroyState(InputState* state); 156 void _clearBuffers(); 157 158 void _reload(bool joyStickSupport); 145 159 146 160 void _completeCalibration(); … … 177 191 unsigned int joySticksSize_; 178 192 unsigned int devicesNum_; 193 size_t windowHnd_; //!< Render window handle 194 InputManagerState internalState_; //!< Current internal state 179 195 180 196 // some internally handled states
Note: See TracChangeset
for help on using the changeset viewer.