Qt: Implement relative mouse mode

This commit is contained in:
Connor McLaughlin
2020-12-27 14:08:13 +10:00
parent 114d4a2c1d
commit ca42d027ac
13 changed files with 116 additions and 8 deletions

View File

@ -577,6 +577,7 @@ void QtHostInterface::updateDisplayState()
if (!System::IsShutdown())
{
g_gpu->UpdateResolutionScale();
UpdateSoftwareCursor();
redrawDisplayWindow();
}
UpdateSpeedLimiterState();
@ -736,6 +737,11 @@ void QtHostInterface::UpdateInputMap()
updateInputMap();
}
void QtHostInterface::SetMouseMode(bool relative, bool hide_cursor)
{
emit mouseModeRequested(relative, hide_cursor);
}
void QtHostInterface::updateInputMap()
{
if (!isOnWorkerThread())