What is the proper naitve implementation of mouse
events in BaylonJS?
Not sure what you mean by native here ? a repro of your issue in the playground might always help.
For the keyboard there is a BABYLON.ActionManager.OnKeyUpTrigger
, BABYLON.ActionManager.OnKeyDownTrigger
, and the DeviceSourceManager. Is there a mouse input equivalent? ANd by native I mean a BabylonJS abstraction
Here is the list of actionmanager triggers: Actions | Babylon.js Documentation
And you could also use scene.onPointerObservable to access any pointer events happening.
Been scrolling through the scene instance properties and I found a scene.onPointerMove
method. Seems fine to use. But it would be cool if there was a set of mouse event actions
1 Like