I created game in opengl and i have problem with double cursor (my and system) in windowed mode. I hide system cursor and use only my cursor in game.
When window is under dock and i move cursor over dock (cursor is still inside window) system cursor is shown. From this moment i have double cursor (my and system).
I try three solutions:
- Use events when cursor is over and when cursor is out dock, but i didn't find such events :(
- Use events when system cursor is unhide or hide, but i didn't find such events, too :(
- Get information about hide cursor count. When i make "CGDisplayHideCursor" hide cursor count is decrement. When cursor is unhide over dock i don't know about it because i havn't any event, but i could check in my timer if cursor should be hide so i could hide it, but in this way i will have many times hide cursor, so i don't know about cursor hide count and i don't make correctly unhide :(
Maybe this should be solved in completely different way.