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

@@ -126,6 +126,13 @@ void SdlInputHandler::performSpecialKeyCombo(KeyCombo combo)
break;
}
case KeyComboTogglePointerRegionLock:
SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION,
"Detected pointer region lock toggle combo");
m_PointerRegionLockActive = !m_PointerRegionLockActive;
updatePointerRegionLock();
break;
default:
Q_UNREACHABLE();
}