diff --git a/scripts/system/controllers/teleport.js b/scripts/system/controllers/teleport.js index 2988136603..50a673272b 100644 --- a/scripts/system/controllers/teleport.js +++ b/scripts/system/controllers/teleport.js @@ -377,23 +377,6 @@ var rightTrigger = new Trigger('right'); var mappingName, teleportMapping; -function registerMappings() { - mappingName = 'Hifi-Teleporter-Dev-' + Math.random(); - teleportMapping = Controller.newMapping(mappingName); - teleportMapping.from(Controller.Standard.RT).peek().to(rightTrigger.buttonPress); - teleportMapping.from(Controller.Standard.LT).peek().to(leftTrigger.buttonPress); - teleportMapping.from(Controller.Standard.RightPrimaryThumb).peek().to(rightPad.buttonPress); - teleportMapping.from(Controller.Standard.LeftPrimaryThumb).peek().to(leftPad.buttonPress); - - teleportMapping.from(leftPad.down).when(leftTrigger.down).to(function() { - teleporter.enterTeleportMode('left') - }); - teleportMapping.from(rightPad.down).when(rightTrigger.down).to(function() { - teleporter.enterTeleportMode('right') - }); - -} - function registerMappings() { mappingName = 'Hifi-Teleporter-Dev-' + Math.random(); teleportMapping = Controller.newMapping(mappingName);