Closed KrzysztofWrobel closed 7 years ago
They're called by a shared util https://github.com/aframevr/aframe/blob/master/src/utils/tracked-controls.js#L22
The cursors work OK with the mobile controllers. See laser-controls
for an example
Let me know if they don't work and provide an example of code
Description: I'm currently working on an application, which will support both Daydream and GearVR controllers. I've noticed that in official source code method addEventListeners() for both Daydream https://github.com/aframevr/aframe/blob/34d1988430c7541f8e28978b31bb6278ca2b7df7/src/components/daydream-controls.js#L66 and GearVR https://github.com/aframevr/aframe/blob/34d1988430c7541f8e28978b31bb6278ca2b7df7/src/components/gearvr-controls.js#L67 is never invoked. As I understand that's the method, which should emit
trackpad
ortrigger
events to the component.For now, to solve my issue I've ended up writing my own component, which setups those events for daydream and gearvr controllers, but I think it requires an open discussion on how we should map trackpad/trigger events to raycaster/cursor intersection clicks.