etiennepinchon / aframe-material

🅰️ Inputs, keyboard, buttons, checkboxes, radio buttons, switches, forms, toasts and more for A-Frame
MIT License
259 stars 62 forks source link

how to bind a-cursor listener to aframe material component #16

Open vikram-rajput opened 6 years ago

vikram-rajput commented 6 years ago

Hi I am trying to bind look control to current project by which it allow user to rayinput feature on cardboard like vr headset but when i did something like

`

` it add the ray input but i am not able to add listener to form elements.
etiennepinchon commented 6 years ago

Hey!

I think you will need to use a script for that using the "click" event directly, I am not really sure why this is not compatible with A-frame attribute events. There is probably something to add in the code to add this feature but I am not really sure what. Let me know if you find a way ;)