Skip to content

Commit 31e9994

Browse files
committed
ViveController: Updated to WebVR 1.1. See mrdoob#9723
1 parent 2d20c7f commit 31e9994

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

examples/js/ViveController.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ THREE.ViveController = function ( id ) {
6161

6262
gamepad = findGamepad( id );
6363

64-
if ( gamepad !== undefined && gamepad.pose !== null ) {
64+
if ( gamepad !== undefined && gamepad.pose !== undefined ) {
65+
66+
if ( gamepad.pose === null ) return; // No user action yet
6567

6668
// Position and orientation.
6769

0 commit comments

Comments
 (0)