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

Space mouse support #263

Open
jtristano opened this issue Aug 23, 2023 · 1 comment
Open

Space mouse support #263

jtristano opened this issue Aug 23, 2023 · 1 comment

Comments

@jtristano
Copy link

I know that onshape supports space mouse. Can glvis also support space mouse, especially in live mode within the browser?

@v-dobrev
Copy link
Member

GLVis uses SDL2, so the question of adding support for space mouse is if SDL2 detects the device and then what type of SDL_* events it generates, so we can process them in various places, e.g. here:

void SdlWindow::mainIter()
here:
void SdlMainThread::DispatchSDLEvents()
and probably other places.

One can probably add potential event candidates to the big switch in the method SdlMainThread::DispatchSDLEvents() with a print statement to see what events are generated by the device. The potential candidates are most likely the following SDL events: https://github.com/libsdl-org/SDL/blob/9237f8edc16c88028a6de5514196fb798c4a0f5c/include/SDL_events.h#L113-L133

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

No branches or pull requests

3 participants