diff options
| author | 2021-12-14 10:12:17 -0600 | |
|---|---|---|
| committer | 2021-12-14 10:12:17 -0600 | |
| commit | ac0c5be7c04527bd12058ea6b8b7c6e594571a0c (patch) | |
| tree | 087a8b1cb7131302075d87b8155e0e070d16ca90 /src | |
| parent | Merge pull request #7580 from lioncash/input-doc (diff) | |
| parent | input/SDL: Update SDL hints (diff) | |
| download | yuzu-ac0c5be7c04527bd12058ea6b8b7c6e594571a0c.tar.gz yuzu-ac0c5be7c04527bd12058ea6b8b7c6e594571a0c.tar.xz yuzu-ac0c5be7c04527bd12058ea6b8b7c6e594571a0c.zip | |
Merge pull request #7577 from v1993/patch-2
input/SDL: Update SDL hints
Diffstat (limited to 'src')
| -rw-r--r-- | src/input_common/drivers/sdl_driver.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/input_common/drivers/sdl_driver.cpp b/src/input_common/drivers/sdl_driver.cpp index e33a5ff31..0cda9df62 100644 --- a/src/input_common/drivers/sdl_driver.cpp +++ b/src/input_common/drivers/sdl_driver.cpp | |||
| @@ -403,10 +403,11 @@ SDLDriver::SDLDriver(std::string input_engine_) : InputEngine(std::move(input_en | |||
| 403 | 403 | ||
| 404 | // Use hidapi driver for joycons. This will allow joycons to be detected as a GameController and | 404 | // Use hidapi driver for joycons. This will allow joycons to be detected as a GameController and |
| 405 | // not a generic one | 405 | // not a generic one |
| 406 | SDL_SetHint("SDL_JOYSTICK_HIDAPI_JOY_CONS", "1"); | 406 | SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_JOY_CONS, "1"); |
| 407 | 407 | ||
| 408 | // Turn off Pro controller home led | 408 | // Disable hidapi driver for xbox. Already default on Windows, this causes conflict with native |
| 409 | SDL_SetHint("SDL_JOYSTICK_HIDAPI_SWITCH_HOME_LED", "0"); | 409 | // driver on Linux. |
| 410 | SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_XBOX, "0"); | ||
| 410 | 411 | ||
| 411 | // If the frontend is going to manage the event loop, then we don't start one here | 412 | // If the frontend is going to manage the event loop, then we don't start one here |
| 412 | start_thread = SDL_WasInit(SDL_INIT_JOYSTICK | SDL_INIT_GAMECONTROLLER) == 0; | 413 | start_thread = SDL_WasInit(SDL_INIT_JOYSTICK | SDL_INIT_GAMECONTROLLER) == 0; |