diff options
| author | 2021-08-01 21:46:13 +0200 | |
|---|---|---|
| committer | 2021-08-01 21:46:13 +0200 | |
| commit | 3e2614148353342284b06899080e4707804eecf5 (patch) | |
| tree | 2d34250d81a20709dbbf8dc4a57a8e4b827e7c8f /src/yuzu_cmd/emu_window/emu_window_sdl2.cpp | |
| parent | game_list: Make game list folder icons smaller (#6762) (diff) | |
| download | yuzu-3e2614148353342284b06899080e4707804eecf5.tar.gz yuzu-3e2614148353342284b06899080e4707804eecf5.tar.xz yuzu-3e2614148353342284b06899080e4707804eecf5.zip | |
yuzu-cmd: hide cursor when in fullscreen
Exposed the SDL_ShowCursor function to EmuWindow baseclass. When creating the window (GL or VK) in fullscreen it now automatically hides the cursor.
Diffstat (limited to 'src/yuzu_cmd/emu_window/emu_window_sdl2.cpp')
| -rw-r--r-- | src/yuzu_cmd/emu_window/emu_window_sdl2.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp b/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp index f643a4b0b..c80f7791c 100644 --- a/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp +++ b/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp | |||
| @@ -122,6 +122,10 @@ void EmuWindow_SDL2::OnResize() { | |||
| 122 | UpdateCurrentFramebufferLayout(width, height); | 122 | UpdateCurrentFramebufferLayout(width, height); |
| 123 | } | 123 | } |
| 124 | 124 | ||
| 125 | void EmuWindow_SDL2::ShowCursor(bool show_cursor) { | ||
| 126 | SDL_ShowCursor(show_cursor ? SDL_ENABLE : SDL_DISABLE); | ||
| 127 | } | ||
| 128 | |||
| 125 | void EmuWindow_SDL2::Fullscreen() { | 129 | void EmuWindow_SDL2::Fullscreen() { |
| 126 | switch (Settings::values.fullscreen_mode.GetValue()) { | 130 | switch (Settings::values.fullscreen_mode.GetValue()) { |
| 127 | case Settings::FullscreenMode::Exclusive: | 131 | case Settings::FullscreenMode::Exclusive: |