Changeset 11625
- Timestamp:
- 06/17/10 17:23:44 (3 years ago)
- Location:
- OpenSceneGraph/trunk/src/osgGA
- Files:
-
- 2 modified
-
FirstPersonManipulator.cpp (modified) (2 diffs)
-
OrbitManipulator.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgGA/FirstPersonManipulator.cpp
r11598 r11625 240 240 { 241 241 242 if( sm == GUIEventAdapter::SCROLL_DOWN && _wheelMovement > 0.||243 sm == GUIEventAdapter::SCROLL_UP && _wheelMovement < 0.)242 if( ((sm == GUIEventAdapter::SCROLL_DOWN) && (_wheelMovement > 0.)) || 243 ((sm == GUIEventAdapter::SCROLL_UP) && (_wheelMovement < 0.)) ) 244 244 { 245 245 … … 262 262 } 263 263 264 switch( sm ) { 264 switch( sm ) 265 { 265 266 266 267 // mouse scroll up event -
OpenSceneGraph/trunk/src/osgGA/OrbitManipulator.cpp
r11598 r11625 224 224 { 225 225 226 if( sm == GUIEventAdapter::SCROLL_DOWN && _wheelZoomFactor > 0.||227 sm == GUIEventAdapter::SCROLL_UP && _wheelZoomFactor < 0.)226 if( ((sm == GUIEventAdapter::SCROLL_DOWN && _wheelZoomFactor > 0.)) || 227 ((sm == GUIEventAdapter::SCROLL_UP && _wheelZoomFactor < 0.)) ) 228 228 { 229 229
