Mouse cursor handling
smokku opened this issue · 0 comments
smokku commented
There are two issues with how egui-miniquad
handles mouse cursor currently.
- It unconditionally enables mouse cursor on each
end_frrame
:Line 179 in e388643
My game shows system cursor only when mouse is over UI, other case custom sprite cursor is drawn on the game screen. After integratingegui-miniquad
mouse cursor is always visible. - It calls
mq_ctx.show_mouse()
every frame, which makes the cursor change very laggy (at least on Windows). My experiments show if I callshow_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.