mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-12-12 15:02:02 +00:00
GLRenderer: Change between docked and handheld mode using a keybinding (#1685)
* GLRenderer: Change between docked and handheld mode using a keybinding * nit
This commit is contained in:
parent
7f536b5a15
commit
41ab43151b
1 changed files with 14 additions and 0 deletions
|
@ -42,6 +42,7 @@ namespace Ryujinx.Ui
|
|||
private bool _mousePressed;
|
||||
|
||||
private bool _toggleFullscreen;
|
||||
private bool _toggleDockedMode;
|
||||
|
||||
private readonly long _ticksPerFrame;
|
||||
|
||||
|
@ -163,6 +164,19 @@ namespace Ryujinx.Ui
|
|||
}
|
||||
|
||||
_toggleFullscreen = toggleFullscreen;
|
||||
|
||||
bool toggleDockedMode = keyboard.IsKeyDown(OpenTK.Input.Key.F9);
|
||||
|
||||
if (toggleDockedMode != _toggleDockedMode)
|
||||
{
|
||||
if (toggleDockedMode)
|
||||
{
|
||||
ConfigurationState.Instance.System.EnableDockedMode.Value =
|
||||
!ConfigurationState.Instance.System.EnableDockedMode.Value;
|
||||
}
|
||||
}
|
||||
|
||||
_toggleDockedMode = toggleDockedMode;
|
||||
}
|
||||
|
||||
private void GLRenderer_Initialized(object sender, EventArgs e)
|
||||
|
|
Loading…
Reference in a new issue