diff options
| author | 2023-06-27 11:21:20 -0400 | |
|---|---|---|
| committer | 2023-06-27 11:21:20 -0400 | |
| commit | f254ce2c60fc3e59a98293e01198eff041c0eeaf (patch) | |
| tree | 986dc5ea6604f1c5c26af120795c060b6f5e2ed7 /src/input_common | |
| parent | Merge pull request #10916 from ameerj/lolmem (diff) | |
| parent | Only use SDL wakelock on Linux (diff) | |
| download | yuzu-f254ce2c60fc3e59a98293e01198eff041c0eeaf.tar.gz yuzu-f254ce2c60fc3e59a98293e01198eff041c0eeaf.tar.xz yuzu-f254ce2c60fc3e59a98293e01198eff041c0eeaf.zip | |
Merge pull request #10679 from zeltermann/wakelock-reason
Only use SDL wakelock on Linux
Diffstat (limited to 'src/input_common')
| -rw-r--r-- | src/input_common/drivers/sdl_driver.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/input_common/drivers/sdl_driver.cpp b/src/input_common/drivers/sdl_driver.cpp index 3cc639ba7..9f26392b1 100644 --- a/src/input_common/drivers/sdl_driver.cpp +++ b/src/input_common/drivers/sdl_driver.cpp | |||
| @@ -487,6 +487,10 @@ void SDLDriver::CloseJoysticks() { | |||
| 487 | } | 487 | } |
| 488 | 488 | ||
| 489 | SDLDriver::SDLDriver(std::string input_engine_) : InputEngine(std::move(input_engine_)) { | 489 | SDLDriver::SDLDriver(std::string input_engine_) : InputEngine(std::move(input_engine_)) { |
| 490 | // Set our application name. Currently passed to DBus by SDL and visible to the user through | ||
| 491 | // their desktop environment. | ||
| 492 | SDL_SetHint(SDL_HINT_APP_NAME, "yuzu"); | ||
| 493 | |||
| 490 | if (!Settings::values.enable_raw_input) { | 494 | if (!Settings::values.enable_raw_input) { |
| 491 | // Disable raw input. When enabled this setting causes SDL to die when a web applet opens | 495 | // Disable raw input. When enabled this setting causes SDL to die when a web applet opens |
| 492 | SDL_SetHint(SDL_HINT_JOYSTICK_RAWINPUT, "0"); | 496 | SDL_SetHint(SDL_HINT_JOYSTICK_RAWINPUT, "0"); |