diff --git a/src/components/cursor-controller.js b/src/components/cursor-controller.js index cec1db7279cff269a6bbc4843f26888ea0978389..6f2662fd4e6c698d9e26e1f19096f3f716266fcb 100644 --- a/src/components/cursor-controller.js +++ b/src/components/cursor-controller.js @@ -2,7 +2,6 @@ const TARGET_TYPE_NONE = 1; const TARGET_TYPE_INTERACTABLE = 2; const TARGET_TYPE_UI = 4; const TARGET_TYPE_INTERACTABLE_OR_UI = TARGET_TYPE_INTERACTABLE | TARGET_TYPE_UI; -const virtualJoystickCutoff = 0.8; AFRAME.registerComponent("cursor-controller", { dependencies: ["raycaster", "line"], @@ -277,7 +276,7 @@ AFRAME.registerComponent("cursor-controller", { this.mousePos.set(touch.clientX / window.innerWidth * 2 - 1, -(touch.clientY / window.innerHeight) * 2 + 1); }, - handleTouchEnd: function(touch) { + handleTouchEnd: function() { // TODO: Should we emit cursor-release just in case // hasPointingDevice changed just before this function call? if (!this.isMobile || this.hasPointingDevice) return; diff --git a/src/components/look-on-mobile.js b/src/components/look-on-mobile.js index 9943d4864792aacf4cfa5a9c3aee5663eeccaa00..61f014bcbafa0e752e548b075b06f5d691c2eb21 100644 --- a/src/components/look-on-mobile.js +++ b/src/components/look-on-mobile.js @@ -38,7 +38,6 @@ AFRAME.registerComponent("look-on-mobile", { tick(t, dt) { if (!this.data.enabled) return; const scene = this.el.sceneEl; - const rotation = this.rotation; const hmdEuler = this.hmdEuler; const pitchObject = this.lookControls.pitchObject; const yawObject = this.lookControls.yawObject;