Skip to content

Space mouse support #263

Open
Open

Description

@jtristano

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

Activity

  1. v-dobrev commented on Aug 24, 2023

    @v-dobrev
    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

  2. self-assigned this
    on Aug 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions