WandererOU / aframe-keyboard

An Aframe component that renders a fully functional 3D keyboard, that works on mobile, desktop browers, and VR headsets!
https://wandererou.github.io/aframe-keyboard/examples/basic/index.html
MIT License
29 stars 19 forks source link

Control-panel based on keyboard #9

Open bilkusg opened 4 years ago

bilkusg commented 4 years ago

Rather than a keyboard, I've been wanting an a-frame component which would allow a more general layout, with general text corresponding to buttons, and embedded 'keys' which provide feedback rather than being pressable - you can specify their id so as to access them in code. The focus is on enabling end-users easily to create new and complex panels, rather than just providing a keyboard for data-entry.

The a-frame-keyboard proved a fruitful starting point, in particular the way it constructs things, but I found myself needing to change too much of it to make it sensible to propose it as a straight pull request.

However, I have put my code up on github in https://github.com/bilkusg/aframe-control-panel. It is more or less backward compatible with the current system, in the sense that the default keyboard looks and works the same as the one in this repo. But the format of the keyboard description is different, and the custom event is too ( see next para for the reason )

I also allow multiple control panels in the same scene - keyboard presses affect whichever use that keystroke in a key, while VR presses only affect the one. ( the custom event has the name of the layout added to its name to allow listening separately on different panels

I'm open to suggestions regarding either finding a way of merging my work with this repo, or if not just treating it as an offshoot with different objectives which may be of use to some of the same people using a-frame-keyboard.

Gary Bilkus

avasconcelos114 commented 4 years ago

Hey!

That's actually a really cool idea, it'd be great to be able to configure entire panels and menus quickly

I'll try to check out your samples and see how you made things work