trigger changes and message debugging

This commit is contained in:
James B. Pollack 2015-11-24 12:46:01 -08:00
parent 2add609387
commit 50c1786e9b
2 changed files with 1 additions and 4 deletions

View file

@ -1228,6 +1228,7 @@ function update() {
Messages.subscribe('Hifi-Beam-Disabler');
handleBeamDisablerMessages = function(channel, message, sender) {
print('GOT MESSAGE:::'+message)
handToDisable = message;
if (message === 'left') {
handToDisable = 1;

View file

@ -441,17 +441,13 @@
if (this.initialHand === 'left') {
triggerLookup=1;
this.getStringHandPosition = MyAvatar.getRightPalmPosition;
// this.stringTriggerAction = Controller.findAction("RIGHT_HAND_CLICK");
} else if (this.initialHand === 'right') {
this.getStringHandPosition = MyAvatar.getLeftPalmPosition;
triggerLookup=0;
// this.stringTriggerAction = Controller.findAction("LEFT_HAND_CLICK");
}
this.triggerValue = Controller.getValue(TRIGGER_CONTROLS[triggerLookup]);
// this.triggerValue = Controller.getActionValue(this.stringTriggerAction);
print('TRIGGER VALUE:::' + this.triggerValue);
if (this.triggerValue < DRAW_STRING_THRESHOLD && this.stringDrawn === true) {
// firing the arrow