aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx/Ui/GLRenderer.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx/Ui/GLRenderer.cs')
-rw-r--r--Ryujinx/Ui/GLRenderer.cs17
1 files changed, 14 insertions, 3 deletions
diff --git a/Ryujinx/Ui/GLRenderer.cs b/Ryujinx/Ui/GLRenderer.cs
index 3ac935f3..b3471259 100644
--- a/Ryujinx/Ui/GLRenderer.cs
+++ b/Ryujinx/Ui/GLRenderer.cs
@@ -1,3 +1,4 @@
+using ARMeilleure.Translation.PTC;
using Gdk;
using OpenTK;
using OpenTK.Graphics;
@@ -183,8 +184,8 @@ namespace Ryujinx.Ui
string titleNameSection = string.IsNullOrWhiteSpace(_device.Application.TitleName) ? string.Empty
: $" - {_device.Application.TitleName}";
- string titleVersionSection = string.IsNullOrWhiteSpace(_device.Application.TitleVersionString) ? string.Empty
- : $" v{_device.Application.TitleVersionString}";
+ string titleVersionSection = string.IsNullOrWhiteSpace(_device.Application.DisplayVersion) ? string.Empty
+ : $" v{_device.Application.DisplayVersion}";
string titleIdSection = string.IsNullOrWhiteSpace(_device.Application.TitleIdText) ? string.Empty
: $" ({_device.Application.TitleIdText.ToUpper()})";
@@ -378,7 +379,17 @@ namespace Ryujinx.Ui
{
Gtk.Application.Invoke(delegate
{
- HandleScreenState(OpenTK.Input.Keyboard.GetState());
+ KeyboardState keyboard = OpenTK.Input.Keyboard.GetState();
+
+ HandleScreenState(keyboard);
+
+ if (keyboard.IsKeyDown(OpenTK.Input.Key.Delete))
+ {
+ if (!ParentWindow.State.HasFlag(Gdk.WindowState.Fullscreen))
+ {
+ Ptc.Continue();
+ }
+ }
});
}