Changeset 8530 for code/trunk/src/libraries/core
- Timestamp:
- May 22, 2011, 9:51:15 PM (14 years ago)
- Location:
- code/trunk/src/libraries/core
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/libraries/core/GUIManager.cc
r8527 r8530 73 73 #include "util/Debug.h" 74 74 #include "util/Exception.h" 75 #include "util/Math.h" 75 76 #include "util/OrxAssert.h" 76 77 #include "ConfigValueIncludes.h" … … 355 356 { 356 357 SetConfigValue(guiScheme_, GUIManager::defaultScheme_) .description("Changes the current GUI scheme.") .callback(this, &GUIManager::changedGUIScheme); 358 SetConfigValue(numScrollLines_, 1).description("How many lines to scroll in a list if the scroll wheel is used"); 357 359 } 358 360 … … 593 595 void GUIManager::mouseScrolled(int abs, int rel) 594 596 { 595 this->protectedCall(boost::bind(&CEGUI::System::injectMouseWheelChange, _1, (float) rel));597 this->protectedCall(boost::bind(&CEGUI::System::injectMouseWheelChange, _1, (float)sgn(rel) * this->numScrollLines_)); 596 598 } 597 599 -
code/trunk/src/libraries/core/GUIManager.h
r8423 r8530 186 186 std::string guiScheme_; 187 187 188 int numScrollLines_; ///< How many lines to scroll in a list if the scroll wheel is used 189 188 190 }; // tolua_export 189 191 } // tolua_export
Note: See TracChangeset
for help on using the changeset viewer.