mirror of
https://github.com/overte-org/overte.git
synced 2025-07-16 01:16:43 +02: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);
|
}.bind(this), 100);
|
||||||
},
|
},
|
||||||
onAction: function(action, value) {
|
onAction: function(action, value) {
|
||||||
// NOTE(Huffman, 11/2/16): The checks below are for backward compatibility
|
var STEP_YAW_ACTION = 6;
|
||||||
// Old versions of High Fidelity returned invalid action ids from
|
var SMOOTH_YAW_ACTION = 4;
|
||||||
// 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;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (action == STEP_YAW_ACTION && value != 0) {
|
if (action == STEP_YAW_ACTION && value != 0) {
|
||||||
debug("TurnAround | Got step yaw action");
|
debug("TurnAround | Got step yaw action");
|
||||||
|
|
Loading…
Reference in a new issue