I need to hide cursor when left and right buttons are both pressed. It turns out the my code is working as expected except for minor glitch with mouse move.
When I call ShowCursor(FALSE) cursor becomes hidden as expected. After that when I call ShowCursor(TRUE) cursor is not appearing again until next mouse move. My opinion - its just is not drawn until mouse event occurs. Is there a way to force cursor to be redrawn?
Code:
void SG::CursorManager::hideCursor(void) {
while(ShowCursor(FALSE) >= 0);
}
void SG::CursorManager::showCursor(void) {
while(ShowCursor(TRUE) <= 0);
}