Skip to content

Commit

Permalink
🐛 Fixed double cursor on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
CuriousMike56 authored and AnotherFoxGuy committed Jan 12, 2020
1 parent b8a705d commit 8f89c94
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions source/main/utils/InputEngine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1925,6 +1925,13 @@ bool InputEngine::setup(String hwnd, bool capture, bool capturemouse, bool captu
#endif // LINUX
}

#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
if (RoR::App::io_input_grab_mode.GetActive() != RoR::IoInputGrabMode::ALL)
{
ShowCursor(FALSE);
}
#endif

#ifndef NOOGRE
LOG("*** OIS WINDOW: "+hwnd);
#endif //NOOGRE
Expand Down

0 comments on commit 8f89c94

Please sign in to comment.