Replies: 4 comments 1 reply
-
The call to To set a custom sprite as the cursor, and assuming MacOS uses GLFW too, then refer to the GLFW documentation. For example (this does work on Windows):
|
Beta Was this translation helpful? Give feedback.
-
Hmmm some progress.... I think it is somehow related to my project. I created fresh new c++ and Lua apps and tried hiding the cursor and also changing to a different GLFW system cursor and both worked flawlessly. Weird.... Time to strip down my code and figure out what's preventing it! If I figure it out I'll comment it and close out the discussion. |
Beta Was this translation helpful? Give feedback.
-
Gah I figured it out! Apparently you can't change the cursor at all when using IMGui! ok... that shouldn't be a major issue for me as I am only using it for debugging now. But would be nice to find a work around. I'll keep looking |
Beta Was this translation helpful? Give feedback.
-
Just doing a quick glance at ChatGPT, and it looks like IMGui has it's own cursor handling functions which you can set cursors or disable them or you can add your code to change it after it's rendering code. I'll play around with that. I'm marking this closed. |
Beta Was this translation helpful? Give feedback.
-
What is the best way to hide the cursor? I'd like to create a custom cursor for Desktop apps by putting a sprite where the cursor location is. However I can't get the cursor to hide in Windowed mode or FullScreen mode.
I am using the following code on Mac:
I do not know if this works or not on PC as I haven't tried yet.
Is there a different way to do it?
Beta Was this translation helpful? Give feedback.
All reactions