mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 17:56:43 +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_NAME = "com.highfidelity.testing.reticleWithHandRotation";
|
||||||
var mapping = Controller.newMapping(MAPPING_NAME);
|
var mapping = Controller.newMapping(MAPPING_NAME);
|
||||||
mapping.from(Controller.Hardware.Hydra.L3).peek().to(Controller.Actions.ReticleClick);
|
if (Controller.Hardware.hydra !== undefined) {
|
||||||
mapping.from(Controller.Hardware.Hydra.R4).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.enable();
|
mapping.enable();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function debugPrint(message) {
|
function debugPrint(message) {
|
||||||
if (DEBUGGING) {
|
if (DEBUGGING) {
|
||||||
print(message);
|
print(message);
|
||||||
|
|
Loading…
Reference in a new issue