Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Control-panel based on keyboard #9

Open
bilkusg opened this issue Oct 18, 2019 · 1 comment
Open

Control-panel based on keyboard #9

bilkusg opened this issue Oct 18, 2019 · 1 comment

Comments

@bilkusg
Copy link

bilkusg commented Oct 18, 2019

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
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants