-
Notifications
You must be signed in to change notification settings - Fork 501
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
[Feature Request] - Support for custom mouse cursors in sokol_app #615
Comments
Looks like a good start. Yes, the cursor images should use a pool. The WIP multiwindow-branch has a sokol-gfx style pool integrated (for window objects), I can simply rip that out: Lines 2641 to 2720 in 57688eb
|
Just linking this for cross-reference: ...it's not "custom cursor images" just yet, instead hardwired/builtin cursor types as needed by Dear ImGui, but its another step in the general direction of user-provided mouse cursors. |
If anyone stumbles on this in the future, this is how you can do it on the current sokol version on Windows: jeffkdev@5dbc11b sapp handles the sapp_win32_update_cursor call now so the application doesn't have to do anything with the event anymore. Edit: icon bool was flipped in initial commit. Updated in this: jeffkdev@094e04f |
Sokol is close to supporting custom cursors icons with the addition of #78. I made a minimal implementation for Windows here
jeffkdev@54a44d9. I was thinking it would probably need to be changed to use pooled identifiers like the sokol_gfx resources. Currently sokol_app doesn't have any pooled resources, but if that was the eventual plan I could update the example do that as well.
I wasn't sure if this was worth tracking separately from the request of integrating cursors from sokol_imgui (#459). It looks like the author of that ticket is using cursor features from imgui internals, but ideally would be available in sokol_app directly. But feel free to close this if it feels like a duplicate.
The text was updated successfully, but these errors were encountered: