2
votes

I don't have Google cardboard right now to test. I'm using universal-controls and mouse-cursor. Will pulling magnet on Google cardboard trigger click event? Here's my camera universal-controls and cursor

<a-entity camera="active:true;userHeight:1.8"
position="0 2.2 4" mouse-cursor
universal-controls="movementEnabled:false"></a-entity>

I'm using aframe v0.3.0 aframe extras v2.3.0

1

1 Answers

0
votes

It will if you use the cursor component. The cursor component provides an implementation of Cardboard click (which are just screen taps) and emits the click/mouseenter/mouseleave events.

https://aframe.io/docs/0.3.0/components/cursor.html