diff options
| author | san <san+gitkraken@smederijmerlijn.nl> | 2021-08-01 21:46:13 +0200 |
|---|---|---|
| committer | san <san+gitkraken@smederijmerlijn.nl> | 2021-08-01 21:46:13 +0200 |
| commit | 3e2614148353342284b06899080e4707804eecf5 (patch) | |
| tree | 2d34250d81a20709dbbf8dc4a57a8e4b827e7c8f /src/yuzu_cmd/emu_window/emu_window_sdl2.h | |
| parent | 381aacdbb1a5ecc41c742adf22666de97068d9c6 (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.h')
| -rw-r--r-- | src/yuzu_cmd/emu_window/emu_window_sdl2.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/yuzu_cmd/emu_window/emu_window_sdl2.h b/src/yuzu_cmd/emu_window/emu_window_sdl2.h index aa0d52ae4..4810f8775 100644 --- a/src/yuzu_cmd/emu_window/emu_window_sdl2.h +++ b/src/yuzu_cmd/emu_window/emu_window_sdl2.h @@ -67,6 +67,9 @@ protected: /// Called by WaitEvent when any event that may cause the window to be resized occurs void OnResize(); + /// Called when users want to hide the mouse cursor + void ShowCursor(bool show_cursor); + /// Called when user passes the fullscreen parameter flag void Fullscreen(); |
