Add hotkey for centering mouse in render window.

This commit is contained in:
Admiral H. Curtiss
2022-07-15 20:31:44 +02:00
parent 8f0d702e5f
commit 4d27022d0e
5 changed files with 21 additions and 0 deletions

View File

@ -233,6 +233,9 @@ void HotkeyScheduler::Run()
if (IsHotkey(HK_UNLOCK_CURSOR))
emit UnlockCursor();
if (IsHotkey(HK_CENTER_MOUSE, true))
g_controller_interface.SetMouseCenteringRequested(true);
auto& settings = Settings::Instance();
// Toggle Chat