Changeset 20973
- Timestamp:
- 12/31/07 13:11:39 (8 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
juggler/trunk/modules/gadgeteer/drivers/Microsoft/DirectXJoystick/DirectXJoystick.cpp
r20970 r20973 206 206 { 207 207 mCurAxes[i].setTime(); 208 mCurAxes[i].setAnalog(mInputDrv.getAxisValue(i)); 208 const LONG cur_value(mInputDrv.getAxisValue(i)); 209 mCurAxes[i].setAnalog(cur_value); 209 210 210 211 // Check for axis buttons. If we have a mapping for axis #i, then we … … 222 223 vprASSERT(low_btn_index < mCurButtons.size() && 223 224 "Virtual low button index out of range"); 225 226 // Get a normalized form of cur_value for axis button handling. 227 const float norm_value(normalize(cur_value)); 224 228 225 229 // Record the high button as pressed and the low button as not juggler/trunk/modules/gadgeteer/drivers/Open/LinuxJoydev/LinuxJoydev.cpp
r20970 r20973 266 266 vprASSERT(low_btn_index < mCurButtons.size() && 267 267 "Virtual low button index out of range"); 268 269 // Get a normalized form of the current value for axis button 270 // handling. 271 const float norm_value(normalize(cur_event.value)); 268 272 269 273 // Record the high button as pressed and the low button as not
