aframe-input-mapping-component
Input Mapping component for A-Frame.
Read more about it on https://blog.mozvr.com/input-mapping
Installation
Browser
Install and use by directly including the browser files:
My A-Frame Scene
npm
Install via npm:
npm install aframe-input-mapping-component
Then require and use.
;;
Register a new mapping
Define a mapping object:
var mappings = default: 'vive-controls': trackpaddown: 'teleport' 'oculus-touch-controls': xbuttondown: 'teleport' paint: common: triggerdown: 'paint' 'vive-controls': menudown: 'toggleMenu' 'oculus-touch-controls': abuttondown: 'toggleMenu'
Register it:
AFRAME;