mirror of
https://github.com/overte-org/overte.git
synced 2025-04-19 07:37:16 +02:00
also check tabletID
This commit is contained in:
parent
fcccaaea48
commit
175e4b7013
1 changed files with 2 additions and 1 deletions
|
@ -54,7 +54,8 @@ Script.include("/~/system/libraries/controllers.js");
|
|||
var intersection = controllerData.rayPicks[this.hand];
|
||||
if (intersection.type === Picks.INTERSECTED_OVERLAY) {
|
||||
var objectID = intersection.objectID;
|
||||
if ((HMD.tabletScreenID && objectID === HMD.tabletScreenID) ||
|
||||
if ((HMD.tabletID && objectID === HMD.tabletID) ||
|
||||
(HMD.tabletScreenID && objectID === HMD.tabletScreenID) ||
|
||||
(HMD.homeButtonID && objectID === HMD.homeButtonID)) {
|
||||
return true;
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue