Skip to content

trigger mouse events manually for WebXR controllers #35

@fmarinofiuba

Description

@fmarinofiuba

Hi, I'm not sure if this is there right place to post this message.
I found this library quite useful for creating UIs for VR app in three.js.

The only problem is that if I want to use the VR controllers (like Meta Quest 2 controllers) to trigger the pointerup and pointerdown events, I couldn´'t find any public method to do that.

I read the source code but I could understand exactly what to modify. But it seems it should be relatively simple.
This modification would enable interesting uses cases for VR

I figured out the the method setMouse(x,y) is used to set the local coordinates of the pointer on the ui, but I could not trigger the mousedown or mouseup from the controller's event handler

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions