Use SDL's keyboard grab support now that it's been upstreamed

This commit is contained in:
Cameron Gutman
2021-01-27 19:59:13 -06:00
parent 4b9e90ac72
commit 9fc921f49f
5 changed files with 47 additions and 201 deletions

View File

@@ -68,6 +68,12 @@ SystemProperties::SystemProperties()
hasDiscordIntegration = false;
#endif
#ifdef Q_OS_DARWIN
supportsWindowedSystemKeyCapture = false;
#else
supportsWindowedSystemKeyCapture = true;
#endif
unmappedGamepads = SdlInputHandler::getUnmappedGamepads();
// Populate data that requires talking to SDL. We do it all in one shot