nl_tokens: Returns the state of the given joystick ( 0 or 1 ) as a THREE . Vector2 .
pl_tokens: function ( index ) { const gamepad = this . getGamepad ( ) ; switch ( index ) { case 0 : return new THREE . Vector2 ( gamepad . axes [ 0 ] , gamepad . axes [ 1 ] ) ; <mask> 1 : return new THREE . Vector2 ( gamepad . axes [ 2 ] , gamepad . axes [ 3 ] ) ; default : throw new Error ( 'Unexpected joystick index "%d".' , index ) ; } }