Changeset 1344 for code/branches/input/src/core/InputHandler.h
- Timestamp:
- May 21, 2008, 6:26:15 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/input/src/core/InputHandler.h
r1340 r1344 60 60 BufferedParamCommand() : value_(0.0f), nValuesAdded_(0), paramIndex_(-1) { } 61 61 bool execute(); 62 62 63 float value_; 63 64 unsigned int nValuesAdded_; … … 93 94 virtual bool addParamCommand(ParamCommand* command) { return false; } 94 95 void parse(std::vector<BufferedParamCommand*>& paramCommandBuffer); 95 bool execute(KeybindMode::Enum mode );96 bool execute(KeybindMode::Enum mode, float abs = 1.0f, float rel = 1.0f); 96 97 97 98 //! The configured string value … … 114 115 HalfAxis() : relVal_(0.0f), absVal_(0.0f), paramCommands_(0), nParamCommands_(0), 115 116 wasDown_(false), hasChanged_(false) { } 117 using Button::execute; 116 118 bool execute(); 117 bool execute(KeybindMode::Enum mode) { return Button::execute(mode); }119 //bool execute(KeybindMode::Enum mode) { return Button::execute(mode); } 118 120 bool addParamCommand(ParamCommand* command); 119 121 void clear(); … … 176 178 177 179 //! denotes the number of different mouse buttons there are in OIS. 178 static const unsigned int nMouseButtons_s = 8 ;180 static const unsigned int nMouseButtons_s = 8 + 2*2; // 8 buttons and 2 scroll wheels 179 181 //! Actual key bindings as bundle for Press, Hold and Release 180 182 Button mouseButtons_ [nMouseButtons_s]; … … 193 195 * Sequence is as follows: 194 196 * 0 - 3: Mouse x and y 195 * 4 - 7: Mouse scroll wheels 1 and 2 (2 not yet supported)197 * 4 - 7: empty 196 198 * 8 - 23: joy stick (slider) axes 1 to 8 197 199 * 24 - 55: joy stick axes 1 - 16 … … 205 207 std::vector<BufferedParamCommand*> paramCommandBuffer_; 206 208 209 //! Keeps track of the absolute mouse value (incl. scroll wheel) 210 int mousePosition_[3]; 211 //! Used to derive mouse input if requested 212 int mouseRelative_[2]; 213 float deriveTime_; 214 215 //**** ConfigValues *****\\ 207 216 //! Threshold for analog triggers until which the state is 0. 208 217 float analogThreshold_; 209 218 //! Threshold for analog triggers until which the button is not pressed. 210 219 float buttonThreshold_; 220 //! Derive mouse input for absolute values? 221 bool bDeriveMouseInput_; 222 //! Accuracy of the mouse input deriver. The higher the more precise, but laggier. 223 float derivePeriod_; 224 //! mouse sensitivity 225 float mouseSensitivity_; 211 226 }; 212 227
Note: See TracChangeset
for help on using the changeset viewer.