fernandojsg / aframe-input-mapping-component

https://fernandojsg.github.io/aframe-input-mapping-component
MIT License
24 stars 7 forks source link

Event listeners don't get unbound when controllers disconnect. #6

Closed johnshaughnessy closed 6 years ago

johnshaughnessy commented 6 years ago

This means that mapped events fire multiple times after my controller reconnects.

A fix that worked for me was to remove the event listeners when a controller disconnects and reuse a controllerObj when a controller connects. That can be found here.