Browse Source

OrbitControls: docs update

Guilherme Avila 6 years ago
parent
commit
083063658f
1 changed files with 15 additions and 4 deletions
  1. 15 4
      docs/examples/en/controls/OrbitControls.html

+ 15 - 4
docs/examples/en/controls/OrbitControls.html

@@ -187,12 +187,12 @@ controls.keys = {
 		<h3>
 			[property:Object mouseButtons]</h3>
 		<p>
-			This object contains references to the mouse buttons used for the controls.
+			This object contains references to the mouse actions used by the controls.
 			<code>
 controls.mouseButtons = {
-	LEFT: THREE.MOUSE.LEFT,
-	MIDDLE: THREE.MOUSE.MIDDLE,
-	RIGHT: THREE.MOUSE.RIGHT
+	LEFT: THREE.MOUSE.ROTATE,
+	MIDDLE: THREE.MOUSE.DOLLY,
+	RIGHT: THREE.MOUSE.PAN
 }
 			</code>
 		</p>
@@ -234,6 +234,17 @@ controls.mouseButtons = {
 			the focus of the controls.
 		</p>
 
+		<h3>[property:Object touches]</h3>
+		<p>
+			This object contains references to the touch actions used by the controls.
+			<code>
+controls.touches = {
+	ONE: THREE.TOUCH.ROTATE,
+	TWO: THREE.TOUCH.DOLLY_PAN
+}
+			</code>
+		</p>
+
 		<h3>[property:Float zoom0]</h3>
 		<p>
 			Used internally by the [method:saveState] and [method:reset] methods.