Merge pull request #9350 from druiz17/hombutton2.0

Home button works with stylus
This commit is contained in:
Seth Alves 2017-01-10 15:38:34 -08:00 committed by GitHub
commit 0c06832be4

View file

@ -1220,12 +1220,25 @@ function MyController(hand) {
if (this.handleStylusOnWebOverlay(rayPickInfo)) {
return;
}
this.handleStylusOnHomeButton(rayPickInfo);
}
} else {
this.hideStylus();
}
};
this.handleStylusOnHomeButton = function(rayPickInfo) {
var pointerEvent;
if (rayPickInfo.entityID) {
var entity = rayPickInfo.entityID;
var name = entityPropertiesCache.getProps(entity).name;
if (name == "homeButton") {
Messages.sendLocalMessage("home", entity);
}
}
};
this.clearEquipHaptics = function() {
this.prevPotentialEquipHotspot = null;
};