diff options
author | bunnei <bunneidev@gmail.com> | 2021-08-07 11:00:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-07 11:00:29 +0200 |
commit | 456adb95ff7ddbf109af7b651e84c0755d11df18 (patch) | |
tree | af510d563dd78bfa0e37737ef56ee0aaa4f053d4 /src/yuzu_cmd/emu_window/emu_window_sdl2.cpp | |
parent | Merge pull request #6815 from german77/ui_improvements (diff) | |
parent | yuzu-cmd: hide cursor when in fullscreen (diff) | |
download | yuzu-456adb95ff7ddbf109af7b651e84c0755d11df18.tar yuzu-456adb95ff7ddbf109af7b651e84c0755d11df18.tar.gz yuzu-456adb95ff7ddbf109af7b651e84c0755d11df18.tar.bz2 yuzu-456adb95ff7ddbf109af7b651e84c0755d11df18.tar.lz yuzu-456adb95ff7ddbf109af7b651e84c0755d11df18.tar.xz yuzu-456adb95ff7ddbf109af7b651e84c0755d11df18.tar.zst yuzu-456adb95ff7ddbf109af7b651e84c0755d11df18.zip |
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() { UpdateCurrentFramebufferLayout(width, height); } +void EmuWindow_SDL2::ShowCursor(bool show_cursor) { + SDL_ShowCursor(show_cursor ? SDL_ENABLE : SDL_DISABLE); +} + void EmuWindow_SDL2::Fullscreen() { switch (Settings::values.fullscreen_mode.GetValue()) { case Settings::FullscreenMode::Exclusive: |