Merge pull request #10858 from AdmiralCurtiss/mouse-center-hotkey

Add hotkey for centering mouse in render window.
This commit is contained in:
Admiral H. Curtiss 2022-07-26 12:52:33 +02:00 committed by GitHub
commit 9d15a1c5a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 108 additions and 32 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