Changeset 8627 for code/branches/presentation/src/libraries
- Timestamp:
- May 27, 2011, 9:54:03 PM (14 years ago)
- Location:
- code/branches/presentation/src/libraries/core
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation/src/libraries/core/GUIManager.cc
r8467 r8627 65 65 #endif 66 66 67 #if def ORXONOX_PLATFORM_WINDOWS67 #if defined(ORXONOX_PLATFORM_WINDOWS) && !defined(ORXONOX_COMPILER_MINGW) 68 68 # include <windows.h> 69 69 #endif … … 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" … … 121 122 d_ostream.close(); 122 123 123 #if def ORXONOX_PLATFORM_WINDOWS124 #if defined(ORXONOX_PLATFORM_WINDOWS) && !defined(ORXONOX_COMPILER_MINGW) 124 125 // filename.c_str() is UTF-8 encoded, but Windows expects characters 125 126 // according to the current codepage or UTF-16 (wchar) … … 156 157 } 157 158 158 #if def ORXONOX_PLATFORM_WINDOWS159 #if defined(ORXONOX_PLATFORM_WINDOWS) && !defined(ORXONOX_COMPILER_MINGW) 159 160 /// Converts a UTF-8 character sequence to Windows UTF-16 160 161 static std::wstring utf8ToUtf16(const std::string& utf8text) … … 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/branches/presentation/src/libraries/core/GUIManager.h
r8423 r8627 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.