aframe-input-mapping-component icon indicating copy to clipboard operation
aframe-input-mapping-component copied to clipboard

Multiple input states actived at the same time?

Open fernandojsg opened this issue 8 years ago • 0 comments

As discussed at https://github.com/fernandojsg/aframe-input-mapping-component/issues/11

Could it be interesting to have things like:

AFRAME.setCurrentInputState(['teleport', 'paint']); 

We could have a more advanced API to handle modifications of the states:

AFRAME.setCurrentInputState(['teleport', 'grab']);

or

AFRAME.activateCurrentInputState('grab');
AFRAME.deactivateCurrentInputState('paint');

or

AFRAME.switchCurrentInputState(['grab'], ['paint']); // To add some and remove others
...

fernandojsg avatar Nov 24 '17 12:11 fernandojsg