mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
Turn off hand-controller pointer when Interface doesn't have focus.
This commit is contained in:
parent
9a3b6bf081
commit
fa90d823d5
1 changed files with 3 additions and 0 deletions
|
@ -405,6 +405,9 @@ function update() {
|
|||
if (!Menu.isOptionChecked("First Person")) {
|
||||
return turnOffVisualization();
|
||||
} // What to do? menus can be behind hand!
|
||||
if (!Window.hasFocus()) { // Don't mess with other apps
|
||||
return turnOffVisualization();
|
||||
}
|
||||
var controllerPose = Controller.getPoseValue(activeHand);
|
||||
// Vive is effectively invalid when not in HMD
|
||||
if (!controllerPose.valid || ((hardware === 'Vive') && !HMD.active)) {
|
||||
|
|
Loading…
Reference in a new issue