glvis-js icon indicating copy to clipboard operation
glvis-js copied to clipboard

gamepad not working for glvis

Open jtristano opened this issue 2 years ago • 3 comments

I see gamepad events in my browser and I see gamepad functions in glvis but glvis is not respecting my gamepad (spacemouse) . Can someone please fix this issue? I've spent a good bit of time trying to debug this to no avail.

This url states that my gamepad is registerd and active https://greggman.github.io/html5-gamepad-test/

Thanks Joe

jtristano avatar Aug 28 '23 16:08 jtristano

@tomstitt, do you know anything about that?

tzanio avatar Aug 29 '23 13:08 tzanio

I posted some thoughts about this in the similar issue https://github.com/GLVis/glvis/issues/263.

Unfortunately, I do not have a device like this, so I cannot really try it out with GLVis or GLVis-js.

v-dobrev avatar Aug 30 '23 06:08 v-dobrev

Thanks I now see how things are built from c++ glvis.. However,it's interesting that emscripten creates the hooks for the gamepad in the js code but it seems that they aren't wired. I had thought there may be an easy way to wire in the the web version w/out having to wire in the c++ version. @tomstitt is there a way?

jtristano avatar Aug 30 '23 12:08 jtristano