Browse Source

Renamed pointerButtons to buttons

Gijs Schenk 8 years ago
parent
commit
fe7a96719c

+ 2 - 2
src/Cameras/Inputs/babylon.arcrotatecamera.input.pointers.ts

@@ -5,7 +5,7 @@ module BABYLON {
         camera: ArcRotateCamera;
 
         @serialize()
-        public pointerButtons = [0, 1, 2];
+        public buttons = [0, 1, 2];
 
         @serialize()
         public angularSensibilityX = 1000.0;
@@ -42,7 +42,7 @@ module BABYLON {
             this._pointerInput = (p, s) => {
                 var evt = <PointerEvent>p.event;
 
-                if (this.pointerButtons.indexOf(evt.button) === -1) {
+                if (this.buttons.indexOf(evt.button) === -1) {
                     return;
                 }
 

+ 2 - 2
src/Cameras/Inputs/babylon.freecamera.input.mouse.ts

@@ -3,7 +3,7 @@ module BABYLON {
         camera: FreeCamera;
 
         @serialize()
-        public pointerButtons = [0, 1, 2];
+        public buttons = [0, 1, 2];
 
         @serialize()
         public angularSensibility = 2000.0;
@@ -28,7 +28,7 @@ module BABYLON {
                         return;
                     }
 
-                    if(this.pointerButtons.indexOf(evt.button) === -1){
+                    if(this.buttons.indexOf(evt.button) === -1){
                         return;
                     }