diff options
author | John <loneboco@gmail.com> | 2023-05-11 11:13:01 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-11 20:13:01 +0200 |
commit | ec0bb74968de92230dd026faa35e5f8bd975ec35 (patch) | |
tree | b0d05495202e0bfba4a0d62e037cb76996be8452 | |
parent | 42f7f986661ef7ba65996e56d8448cb8f8985515 (diff) |
Stop SDL from inhibiting sleep. (#4842)1.1.782
-rw-r--r-- | src/Ryujinx.SDL2.Common/SDL2Driver.cs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Ryujinx.SDL2.Common/SDL2Driver.cs b/src/Ryujinx.SDL2.Common/SDL2Driver.cs index 970e287d..c41c6269 100644 --- a/src/Ryujinx.SDL2.Common/SDL2Driver.cs +++ b/src/Ryujinx.SDL2.Common/SDL2Driver.cs @@ -63,6 +63,7 @@ namespace Ryujinx.SDL2.Common SDL_SetHint(SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS, "1"); SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_SWITCH_HOME_LED, "0"); SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_JOY_CONS, "1"); + SDL_SetHint(SDL_HINT_VIDEO_ALLOW_SCREENSAVER, "1"); // NOTE: As of SDL2 2.24.0, joycons are combined by default but the motion source only come from one of them. |