- Timestamp:
- Dec 22, 2009, 11:20:19 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2/data/gui/scripts/MouseControlsMenu.lua
r6363 r6403 47 47 scrollposition = mousenormalscrollbarwindow:getScrollPosition() 48 48 mousenormalsensitivity = (math.pow(64,scrollposition)+6)/14 49 orxonox. CommandExecutor:execute("config KeyBinder mouseSensitivity_ " ..mousenormalsensitivity)49 orxonox.config("KeyBinder", "mouseSensitivity_", mousenormalsensitivity) 50 50 end 51 51 end … … 58 58 scrollposition = mousenormalscrollbarwindow:getScrollPosition() 59 59 mousenormalsensitivity = (math.pow(64,scrollposition)+6)/14 60 orxonox. CommandExecutor:execute("config KeyBinder mouseSensitivity_ " ..mousenormalsensitivity)60 orxonox.config("KeyBinder", "mouseSensitivity_", mousenormalsensitivity) 61 61 mousenormalscrollbar_active = false 62 62 end … … 66 66 scrollposition = mousederivescrollbarwindow:getScrollPosition() 67 67 mousederivesensitivity = (math.pow(64,scrollposition)+6)/14 68 orxonox. CommandExecutor:execute("config KeyBinder mouseSensitivityDerived_ " ..mousederivesensitivity)68 orxonox.config("KeyBinder", "mouseSensitivityDerived_", mousederivesensitivity) 69 69 end 70 70 end … … 77 77 scrollposition = mousederivescrollbarwindow:getScrollPosition() 78 78 mousederivesensitivity = (math.pow(64,scrollposition)+6)/14 79 orxonox. CommandExecutor:execute("config KeyBinder mouseSensitivityDerived_ " ..mousederivesensitivity)79 orxonox.config("KeyBinder", "mouseSensitivityDerived_", mousederivesensitivity) 80 80 mousederivescrollbar_active = false 81 81 end … … 86 86 derivewindow:setSelected(false) 87 87 block = false 88 orxonox. CommandExecutor:execute("config KeyBinder bDeriveMouseInput_ false")88 orxonox.config("KeyBinder", "bDeriveMouseInput_", 0) 89 89 end 90 90 end … … 95 95 normalwindow:setSelected(false) 96 96 block = false 97 orxonox. CommandExecutor:execute("config KeyBinder bDeriveMouseInput_ true")97 orxonox.config("KeyBinder", "bDeriveMouseInput_", 1) 98 98 end 99 99 end
Note: See TracChangeset
for help on using the changeset viewer.