Skip to content
Snippets Groups Projects
Commit 6cba0058 authored by netpro2k's avatar netpro2k Committed by johnshaughnessy
Browse files

Sets have a delete method not a remove method

parent ed92c84a
No related branches found
No related tags found
No related merge requests found
...@@ -103,15 +103,15 @@ AFRAME.registerSystem("userinput", { ...@@ -103,15 +103,15 @@ AFRAME.registerSystem("userinput", {
const inVRMode = this.el.sceneEl.is("vr-mode"); const inVRMode = this.el.sceneEl.is("vr-mode");
if (AFRAME.utils.device.isMobile()) { if (AFRAME.utils.device.isMobile()) {
if (inVRMode) { if (inVRMode) {
this.activeDevices.remove(appAwareTouchscreenDevice); this.activeDevices.delete(appAwareTouchscreenDevice);
this.registeredMappings.remove(touchscreenUserBindings); this.registeredMappings.delete(touchscreenUserBindings);
} else { } else {
this.activeDevices.add(appAwareTouchscreenDevice); this.activeDevices.add(appAwareTouchscreenDevice);
this.registeredMappings.add(touchscreenUserBindings); this.registeredMappings.add(touchscreenUserBindings);
} }
} else { } else {
if (inVRMode) { if (inVRMode) {
this.registeredMappings.remove(keyboardMouseUserBindings); this.registeredMappings.delete(keyboardMouseUserBindings);
} else { } else {
this.registeredMappings.add(keyboardMouseUserBindings); this.registeredMappings.add(keyboardMouseUserBindings);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment