mirror of
https://github.com/overte-org/overte.git
synced 2025-04-19 15:43:50 +02:00
slow 180 rate
This commit is contained in:
parent
3a8de5ab0d
commit
214a705199
1 changed files with 12 additions and 6 deletions
|
@ -11,6 +11,8 @@
|
|||
|
||||
var mappingName, basicMapping, isChecked;
|
||||
|
||||
var TURN_RATE = 1000;
|
||||
|
||||
var previousSetting = Settings.getValue('advancedMovementForHandControllersIsChecked');
|
||||
if (previousSetting === '') {
|
||||
previousSetting = false;
|
||||
|
@ -59,7 +61,7 @@ function registerBasicMapping() {
|
|||
rotate180();
|
||||
Script.setTimeout(function() {
|
||||
inFlipTurn = false;
|
||||
}, 250)
|
||||
}, TURN_RATE)
|
||||
} else {
|
||||
|
||||
}
|
||||
|
@ -122,11 +124,15 @@ Script.scriptEnding.connect(scriptEnding);
|
|||
Menu.menuItemEvent.connect(menuItemEvent);
|
||||
|
||||
registerBasicMapping();
|
||||
if (previousSetting === true) {
|
||||
disableMappings();
|
||||
} else if (previousSetting === false) {
|
||||
enableMappings();
|
||||
}
|
||||
|
||||
Script.setTimeout(function() {
|
||||
if (previousSetting === true) {
|
||||
disableMappings();
|
||||
} else(previousSetting === false) {
|
||||
enableMappings();
|
||||
}
|
||||
|
||||
}, 0)
|
||||
|
||||
|
||||
HMD.displayModeChanged.connect(function(isHMDMode) {
|
||||
|
|
Loading…
Reference in a new issue