mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-11 00:58:56 +02:00
add vive button mapping
This commit is contained in:
parent
e01524abbe
commit
87e7dd9ce3
1 changed files with 4 additions and 1 deletions
|
@ -10,7 +10,6 @@
|
||||||
//
|
//
|
||||||
|
|
||||||
var DEBUGGING = false;
|
var DEBUGGING = false;
|
||||||
|
|
||||||
var angularVelocityTrailingAverage = 0.0; // Global trailing average used to decide whether to move reticle at all
|
var angularVelocityTrailingAverage = 0.0; // Global trailing average used to decide whether to move reticle at all
|
||||||
var lastX = 0;
|
var lastX = 0;
|
||||||
var lastY = 0;
|
var lastY = 0;
|
||||||
|
@ -39,6 +38,10 @@ if (Controller.Hardware.Hydra !== undefined) {
|
||||||
mapping.from(Controller.Hardware.Hydra.L3).peek().to(Controller.Actions.ReticleClick);
|
mapping.from(Controller.Hardware.Hydra.L3).peek().to(Controller.Actions.ReticleClick);
|
||||||
mapping.from(Controller.Hardware.Hydra.R4).peek().to(Controller.Actions.ReticleClick);
|
mapping.from(Controller.Hardware.Hydra.R4).peek().to(Controller.Actions.ReticleClick);
|
||||||
}
|
}
|
||||||
|
if (Controller.Hardware.Vive !== undefined) {
|
||||||
|
mapping.from(Controller.Hardware.Vive.LeftPrimaryThumb).peek().to(Controller.Actions.ReticleClick);
|
||||||
|
mapping.from(Controller.Hardware.Vive.RightPrimaryThumb).peek().to(Controller.Actions.ReticleClick);
|
||||||
|
}
|
||||||
|
|
||||||
mapping.enable();
|
mapping.enable();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue