mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
Update step/smooth yaw action values to be hardcoded
This commit is contained in:
parent
f6c0a451de
commit
cf975f9667
1 changed files with 2 additions and 13 deletions
|
@ -753,19 +753,8 @@ stepTurnAround.prototype = {
|
|||
}.bind(this), 100);
|
||||
},
|
||||
onAction: function(action, value) {
|
||||
// NOTE(Huffman, 11/2/16): The checks below are for backward compatibility
|
||||
// Old versions of High Fidelity returned invalid action ids from
|
||||
// Controller.Actions.Yaw/StepYaw which were above 10000. If they are
|
||||
// above 10000 then we can assume we are on an old version and hard-code
|
||||
// the values. Eventually we should remove these checks.
|
||||
var STEP_YAW_ACTION = Controller.Actions.StepYaw;
|
||||
if (STEP_YAW_ACTION > 10000) {
|
||||
STEP_YAW_ACTION = 6;
|
||||
}
|
||||
var SMOOTH_YAW_ACTION = Controller.Actions.Yaw;
|
||||
if (SMOOTH_YAW_ACTION > 10000) {
|
||||
SMOOTH_YAW_ACTION = 4;
|
||||
}
|
||||
var STEP_YAW_ACTION = 6;
|
||||
var SMOOTH_YAW_ACTION = 4;
|
||||
|
||||
if (action == STEP_YAW_ACTION && value != 0) {
|
||||
debug("TurnAround | Got step yaw action");
|
||||
|
|
Loading…
Reference in a new issue