Cinder icon indicating copy to clipboard operation
Cinder copied to clipboard

Changing CameraUi to make the mouse events virtual

Open odbee opened this issue 3 years ago • 1 comments

Hey, I've been struggling with adding mouse events while using CameraUi since they overwrite the mouse events apparent in the class. My solution was forking the CameraUi script and making all mouse related functions virtual. That way I could just make a derived class and override the standard mouse events within CameraUi without having to setup everything else. So I'm wondering why this couldn't be the standard since it shouldn't break anything and would just help with using the program.

odbee avatar Mar 27 '22 11:03 odbee

You don't need to have the CameraUi add mouse events, you can just call CameraUi::mouseDown etc from your own mouse handlers.

axjxwright avatar Apr 30 '22 04:04 axjxwright