mirror of
https://github.com/overte-org/overte.git
synced 2025-04-19 16:23:39 +02:00
look for hydra first
This commit is contained in:
parent
86249cc9db
commit
b89b6be210
1 changed files with 5 additions and 4 deletions
|
@ -35,12 +35,13 @@ function moveReticleAbsolute(x, y) {
|
|||
|
||||
var MAPPING_NAME = "com.highfidelity.testing.reticleWithHandRotation";
|
||||
var mapping = Controller.newMapping(MAPPING_NAME);
|
||||
mapping.from(Controller.Hardware.Hydra.L3).peek().to(Controller.Actions.ReticleClick);
|
||||
mapping.from(Controller.Hardware.Hydra.R4).peek().to(Controller.Actions.ReticleClick);
|
||||
if (Controller.Hardware.hydra !== undefined) {
|
||||
mapping.from(Controller.Hardware.Hydra.L3).peek().to(Controller.Actions.ReticleClick);
|
||||
mapping.from(Controller.Hardware.Hydra.R4).peek().to(Controller.Actions.ReticleClick);
|
||||
}
|
||||
|
||||
mapping.enable();
|
||||
|
||||
|
||||
|
||||
function debugPrint(message) {
|
||||
if (DEBUGGING) {
|
||||
print(message);
|
||||
|
|
Loading…
Reference in a new issue