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

Provisional Gamepad Support #4

Open
lollerbus opened this issue Jun 30, 2016 · 1 comment
Open

Provisional Gamepad Support #4

lollerbus opened this issue Jun 30, 2016 · 1 comment

Comments

@lollerbus
Copy link

Hi @spite,

First off, fantastic work! I hope I'm not stepping on your toes, but I was considering adding an emulated HTC Vive controller in a fashion similar to your monkey-patching of navigator.getVRDisplays. Initially just something simple in terms of being able to position/orient it in space and depress buttons. Should I get something functional in a PR in order to discuss further?

Thanks,
lollerbus

@spite
Copy link
Owner

spite commented Jun 30, 2016

Yes! It would work similarly, but for navigator.getGamepads() (and all the related methods, objects, events...)

To begin with, exposing two "controller-like" boxes that can get a pose like the hmd, and attach the TransformControls. Then it might make sense to refactor the code so it can be generalised for hmd, controllers ... and anything else that might come in the future.

Do you have any thoughts about how to handle buttons and touchpads?

Also, it might be interesting to not override all gamepads, in case a developer is also using a standard gamepad for whatever reason.

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