Skip to content

Commit

Permalink
tracked-controllers-webvr: when not in vr-mode, doesn't call getGamep…
Browse files Browse the repository at this point in the history
…ads()
  • Loading branch information
DougReeder committed Oct 15, 2024
1 parent 6a6bb02 commit a3f8df8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/systems/tracked-controls-webvr.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ module.exports.System = registerSystem('tracked-controls-webvr', {
var i;
var prevCount;

if (!this.el.is('vr-mode')) { return; }
gamepads = navigator.getGamepads && navigator.getGamepads();
if (!gamepads) { return; }

Expand Down

0 comments on commit a3f8df8

Please sign in to comment.