mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 19:29:47 +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 mappingName, basicMapping, isChecked;
|
||||||
|
|
||||||
|
var TURN_RATE = 1000;
|
||||||
|
|
||||||
var previousSetting = Settings.getValue('advancedMovementForHandControllersIsChecked');
|
var previousSetting = Settings.getValue('advancedMovementForHandControllersIsChecked');
|
||||||
if (previousSetting === '') {
|
if (previousSetting === '') {
|
||||||
previousSetting = false;
|
previousSetting = false;
|
||||||
|
@ -59,7 +61,7 @@ function registerBasicMapping() {
|
||||||
rotate180();
|
rotate180();
|
||||||
Script.setTimeout(function() {
|
Script.setTimeout(function() {
|
||||||
inFlipTurn = false;
|
inFlipTurn = false;
|
||||||
}, 250)
|
}, TURN_RATE)
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -122,11 +124,15 @@ Script.scriptEnding.connect(scriptEnding);
|
||||||
Menu.menuItemEvent.connect(menuItemEvent);
|
Menu.menuItemEvent.connect(menuItemEvent);
|
||||||
|
|
||||||
registerBasicMapping();
|
registerBasicMapping();
|
||||||
if (previousSetting === true) {
|
|
||||||
disableMappings();
|
Script.setTimeout(function() {
|
||||||
} else if (previousSetting === false) {
|
if (previousSetting === true) {
|
||||||
enableMappings();
|
disableMappings();
|
||||||
}
|
} else(previousSetting === false) {
|
||||||
|
enableMappings();
|
||||||
|
}
|
||||||
|
|
||||||
|
}, 0)
|
||||||
|
|
||||||
|
|
||||||
HMD.displayModeChanged.connect(function(isHMDMode) {
|
HMD.displayModeChanged.connect(function(isHMDMode) {
|
||||||
|
|
Loading…
Reference in a new issue