aboutsummaryrefslogtreecommitdiff
path: root/src/yuzu_cmd/emu_window/emu_window_sdl2_gl.cpp
diff options
context:
space:
mode:
authorsan <san+gitkraken@smederijmerlijn.nl>2021-08-01 21:46:13 +0200
committersan <san+gitkraken@smederijmerlijn.nl>2021-08-01 21:46:13 +0200
commit3e2614148353342284b06899080e4707804eecf5 (patch)
tree2d34250d81a20709dbbf8dc4a57a8e4b827e7c8f /src/yuzu_cmd/emu_window/emu_window_sdl2_gl.cpp
parent381aacdbb1a5ecc41c742adf22666de97068d9c6 (diff)
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_gl.cpp')
-rw-r--r--src/yuzu_cmd/emu_window/emu_window_sdl2_gl.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/yuzu_cmd/emu_window/emu_window_sdl2_gl.cpp b/src/yuzu_cmd/emu_window/emu_window_sdl2_gl.cpp
index 5b98c255b..a075ad08a 100644
--- a/src/yuzu_cmd/emu_window/emu_window_sdl2_gl.cpp
+++ b/src/yuzu_cmd/emu_window/emu_window_sdl2_gl.cpp
@@ -111,6 +111,7 @@ EmuWindow_SDL2_GL::EmuWindow_SDL2_GL(InputCommon::InputSubsystem* input_subsyste
if (fullscreen) {
Fullscreen();
+ ShowCursor(false);
}
window_context = SDL_GL_CreateContext(render_window);