diff --git a/resources/settings/settings_description.json b/resources/settings/settings_description.json index e636327..72d974b 100644 --- a/resources/settings/settings_description.json +++ b/resources/settings/settings_description.json @@ -151,6 +151,10 @@ "value": "forceAlwaysFS", "default": false, "hidden": true + }, + { + "value": "sdlEnabled", + "default": true } ] }, diff --git a/src/input/InputComponent.cpp b/src/input/InputComponent.cpp index 2cf5509..fc47ec1 100644 --- a/src/input/InputComponent.cpp +++ b/src/input/InputComponent.cpp @@ -91,7 +91,8 @@ bool InputComponent::componentInitialize() addInput(new InputAppleMediaKeys(this)); #endif #ifdef HAVE_SDL - addInput(new InputSDL(this)); + if (SettingsComponent::Get().value(SETTINGS_SECTION_MAIN, "sdlEnabled").toBool()) + addInput(new InputSDL(this)); #endif #ifdef HAVE_LIRC addInput(new InputLIRC(this));