mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 08:04:01 +02:00
Merge pull request #9350 from druiz17/hombutton2.0
Home button works with stylus
This commit is contained in:
commit
0c06832be4
1 changed files with 13 additions and 0 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue