瀏覽代碼

Added header to ViveController.

Mr.doob 9 年之前
父節點
當前提交
36a08d9aa9
共有 1 個文件被更改,包括 5 次插入2 次删除
  1. 5 2
      examples/js/ViveController.js

+ 5 - 2
examples/js/ViveController.js

@@ -1,15 +1,18 @@
+/**
+ * @author mrdoob / http://mrdoob.com
+ */
+
 THREE.ViveController = function ( id ) {
 THREE.ViveController = function ( id ) {
 
 
 	THREE.Object3D.call( this );
 	THREE.Object3D.call( this );
 
 
+	var scope = this;
 	var gamepad;
 	var gamepad;
 
 
 	this.getGamepad = function () { return gamepad; };
 	this.getGamepad = function () { return gamepad; };
 	this.matrixAutoUpdate = false;
 	this.matrixAutoUpdate = false;
 	this.standingMatrix = new THREE.Matrix4();
 	this.standingMatrix = new THREE.Matrix4();
 
 
-	var scope = this;
-
 	function update() {
 	function update() {
 
 
 		requestAnimationFrame( update );
 		requestAnimationFrame( update );