mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
Add option for Never Hide Mouse Cursor
Instead of having a single GUI checkbox for "Always Hide Mouse Cursor", I have instead opted to use radio buttons so the user can swap between different states of mouse visibility. "Movement" is the default behavior, "Never" will hide the mouse cursor the entire time the game is running, and "Always" will keep the mouse cursor always visible.
This commit is contained in:
@ -10,6 +10,7 @@
|
||||
#include <QFile>
|
||||
#include <QFileInfo>
|
||||
#include <QFontDatabase>
|
||||
#include <QRadioButton>
|
||||
#include <QSize>
|
||||
#include <QWidget>
|
||||
|
||||
@ -325,15 +326,16 @@ void Settings::SetStateSlot(int slot)
|
||||
GetQSettings().setValue(QStringLiteral("Emulation/StateSlot"), slot);
|
||||
}
|
||||
|
||||
void Settings::SetHideCursor(bool hide_cursor)
|
||||
void Settings::SetCursorVisibility(SConfig::ShowCursor hideCursor)
|
||||
{
|
||||
SConfig::GetInstance().bHideCursor = hide_cursor;
|
||||
emit HideCursorChanged();
|
||||
SConfig::GetInstance().m_show_cursor = hideCursor;
|
||||
|
||||
emit CursorVisibilityChanged();
|
||||
}
|
||||
|
||||
bool Settings::GetHideCursor() const
|
||||
SConfig::ShowCursor Settings::GetCursorVisibility() const
|
||||
{
|
||||
return SConfig::GetInstance().bHideCursor;
|
||||
return SConfig::GetInstance().m_show_cursor;
|
||||
}
|
||||
|
||||
void Settings::SetLockCursor(bool lock_cursor)
|
||||
|
Reference in New Issue
Block a user