enable the trigger mapping so it's actually usable

This commit is contained in:
Stephen Birarda 2016-07-13 15:20:31 -07:00
parent 30f55418db
commit cd1c114807

View file

@ -191,10 +191,11 @@ function makeTriggerHandler(hand) {
} }
}; };
} }
triggerMapping.from(Controller.Standard.RT).peek().to(makeTriggerHandler(Controller.Standard.RightHand)); triggerMapping.from(Controller.Standard.RT).peek().to(makeTriggerHandler(Controller.Standard.RightHand));
triggerMapping.from(Controller.Standard.LT).peek().to(makeTriggerHandler(Controller.Standard.LeftHand)); triggerMapping.from(Controller.Standard.LT).peek().to(makeTriggerHandler(Controller.Standard.LeftHand));
triggerMapping.enable();
// cleanup the toolbar button and overlays when script is stopped // cleanup the toolbar button and overlays when script is stopped
Script.scriptEnding.connect(function() { Script.scriptEnding.connect(function() {
toolbar.removeButton('ignore'); toolbar.removeButton('ignore');