mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-24 02:25:28 +00:00
Fixed Alt+Enter fullscreen toggling.
This commit is contained in:
parent
49b0c413ca
commit
6864127ea0
|
@ -38,13 +38,14 @@ namespace Examples.Tutorial
|
|||
/// <param name="key">The key that was pressed.</param>
|
||||
void Keyboard_KeyDown(KeyboardDevice sender, Key key)
|
||||
{
|
||||
if (WindowState != WindowState.Fullscreen)
|
||||
WindowState = WindowState.Fullscreen;
|
||||
else
|
||||
WindowState = WindowState.Normal;
|
||||
|
||||
if (sender[Key.Escape])
|
||||
this.Exit();
|
||||
|
||||
if ((sender[Key.AltLeft] || sender[Key.AltRight]) && (sender[Key.Enter] || sender[Key.KeypadEnter]))
|
||||
if (this.WindowState == WindowState.Fullscreen)
|
||||
this.WindowState = WindowState.Normal;
|
||||
else
|
||||
this.WindowState = WindowState.Fullscreen;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
|
Loading…
Reference in a new issue