Add pointer lock key combo

Fixes #737
This commit is contained in:
Cameron Gutman
2022-03-29 18:26:09 -05:00
parent 742f1b1283
commit 6972573a6e
5 changed files with 68 additions and 17 deletions

View File

@@ -93,6 +93,8 @@ public:
void updateKeyboardGrabState();
void updatePointerRegionLock();
static
QString getUnmappedGamepads();
@@ -106,6 +108,7 @@ private:
KeyComboToggleCursorHide,
KeyComboToggleMinimize,
KeyComboPasteText,
KeyComboTogglePointerRegionLock,
KeyComboMax
};
@@ -156,6 +159,7 @@ private:
SDL_atomic_t m_MousePositionUpdated;
bool m_MouseWasInVideoRegion;
bool m_PendingMouseButtonsAllUpOnVideoRegionLeave;
bool m_PointerRegionLockActive;
int m_GamepadMask;
GamepadState m_GamepadState[MAX_GAMEPADS];