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

Changing CameraUi to make the mouse events virtual #2280

Open
odbee opened this issue Mar 27, 2022 · 1 comment
Open

Changing CameraUi to make the mouse events virtual #2280

odbee opened this issue Mar 27, 2022 · 1 comment

Comments

@odbee
Copy link

odbee commented Mar 27, 2022

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.

@axjxwright
Copy link
Contributor

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

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

No branches or pull requests

2 participants