mirror of
https://github.com/overte-org/overte.git
synced 2025-08-12 01:18:26 +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)) {
|
if (this.handleStylusOnWebOverlay(rayPickInfo)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
this.handleStylusOnHomeButton(rayPickInfo);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
this.hideStylus();
|
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.clearEquipHaptics = function() {
|
||||||
this.prevPotentialEquipHotspot = null;
|
this.prevPotentialEquipHotspot = null;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue