mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 20:28:56 +00:00
Implement Cursor Locking and new input focus checks for it
This commit is contained in:
parent
ff08b85740
commit
3c7c2dfaa1
25 changed files with 400 additions and 15 deletions
|
@ -280,6 +280,17 @@ bool Settings::GetHideCursor() const
|
|||
return SConfig::GetInstance().bHideCursor;
|
||||
}
|
||||
|
||||
void Settings::SetLockCursor(bool lock_cursor)
|
||||
{
|
||||
SConfig::GetInstance().bLockCursor = lock_cursor;
|
||||
emit LockCursorChanged();
|
||||
}
|
||||
|
||||
bool Settings::GetLockCursor() const
|
||||
{
|
||||
return SConfig::GetInstance().bLockCursor;
|
||||
}
|
||||
|
||||
void Settings::SetKeepWindowOnTop(bool top)
|
||||
{
|
||||
if (IsKeepWindowOnTopEnabled() == top)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue