mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 04:44:11 +02:00
home button works with the stylus
This commit is contained in:
parent
ad48e79053
commit
d0baa0e303
1 changed files with 15 additions and 0 deletions
|
@ -1220,12 +1220,27 @@ 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.grabbedEntity = entity;
|
||||
//this.setState(STATE_ENTITY_STYLUS_TOUCHING, "begin touching entity '" + name + "'");
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
this.clearEquipHaptics = function() {
|
||||
this.prevPotentialEquipHotspot = null;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue