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

Mouse cursor handling #27

Open
smokku opened this issue Aug 11, 2021 · 0 comments
Open

Mouse cursor handling #27

smokku opened this issue Aug 11, 2021 · 0 comments

Comments

@smokku
Copy link

smokku commented Aug 11, 2021

There are two issues with how egui-miniquad handles mouse cursor currently.

  1. It unconditionally enables mouse cursor on each end_frrame:
    mq_ctx.show_mouse(true);

    My game shows system cursor only when mouse is over UI, other case custom sprite cursor is drawn on the game screen. After integrating egui-miniquad mouse cursor is always visible.
  2. It calls mq_ctx.show_mouse() every frame, which makes the cursor change very laggy (at least on Windows). My experiments show if I call show_mouse() only when mouse cursor state needs to change, the cursor change is instant. I guess the OS event queue gets stuck by setting the mouse cursor so often.
smokku added a commit to smokku/egui-miniquad that referenced this issue Aug 24, 2021
smokku added a commit to smokku/egui-miniquad that referenced this issue Aug 27, 2021
smokku added a commit to smokku/egui-miniquad that referenced this issue Oct 11, 2021
smokku added a commit to smokku/egui-miniquad that referenced this issue Nov 2, 2021
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

1 participant