input_common: Disable SDL driver with switch controllers

This commit is contained in:
Narr the Reg
2022-12-20 12:45:54 -06:00
parent d80e6c399b
commit 2d802893e7
6 changed files with 44 additions and 6 deletions

View File

@ -13,6 +13,10 @@
namespace InputCommon {
Joycons::Joycons(const std::string& input_engine_) : InputEngine(input_engine_) {
// Avoid conflicting with SDL driver
if (!Settings::values.enable_joycon_driver) {
return;
}
LOG_INFO(Input, "Joycon driver Initialization started");
const int init_res = SDL_hid_init();
if (init_res == 0) {