1
Window / Custom cursor not working in title bar
« on: August 07, 2024, 03:41:38 am »
Working on polishing my app and one thing I never got working is the custom cursor in the title bar.
You know the bar at the top of the window with the app title and the minimize, maximize, close buttons? My custom cursor does not render when its in that area so you have to for example click close without seeing your cursor, just basically guessing where it is.
My custom cursor is simply a sprite that I move around every frame by setting it to the mouse location.
On program startup I call this
window.SetMouseCursorVisible(false);
Because I'm going to draw the custom one.
Whats the best practice here? Should I only call that if the cursor is NOT on the title bar? Seems kind of hacky but its the only thing I can think of.
You know the bar at the top of the window with the app title and the minimize, maximize, close buttons? My custom cursor does not render when its in that area so you have to for example click close without seeing your cursor, just basically guessing where it is.
My custom cursor is simply a sprite that I move around every frame by setting it to the mouse location.
On program startup I call this
window.SetMouseCursorVisible(false);
Because I'm going to draw the custom one.
Whats the best practice here? Should I only call that if the cursor is NOT on the title bar? Seems kind of hacky but its the only thing I can think of.