From cdccf89e103694dcad3833d900b7858a49dae1ec Mon Sep 17 00:00:00 2001 From: gdkchan Date: Wed, 15 May 2024 02:20:24 -0300 Subject: =?UTF-8?q?Revert=20"Disable=20keyboard=20controller=20input=20whi?= =?UTF-8?q?le=20swkbd=20is=20open=20(foreground)=20(#=E2=80=A6"=20(#6805)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit a3dc295c5f867bddb56a38f3a848ceb61ff30d32. --- src/Ryujinx.Gtk3/Input/GTK3/GTK3KeyboardDriver.cs | 5 ----- src/Ryujinx.Gtk3/UI/Applet/GtkHostUIHandler.cs | 3 --- 2 files changed, 8 deletions(-) (limited to 'src/Ryujinx.Gtk3') diff --git a/src/Ryujinx.Gtk3/Input/GTK3/GTK3KeyboardDriver.cs b/src/Ryujinx.Gtk3/Input/GTK3/GTK3KeyboardDriver.cs index bd71c793..e502254b 100644 --- a/src/Ryujinx.Gtk3/Input/GTK3/GTK3KeyboardDriver.cs +++ b/src/Ryujinx.Gtk3/Input/GTK3/GTK3KeyboardDriver.cs @@ -81,11 +81,6 @@ namespace Ryujinx.Input.GTK3 return _pressedKeys.Contains(nativeKey); } - public void Clear() - { - _pressedKeys.Clear(); - } - public IGamepad GetGamepad(string id) { if (!_keyboardIdentifers[0].Equals(id)) diff --git a/src/Ryujinx.Gtk3/UI/Applet/GtkHostUIHandler.cs b/src/Ryujinx.Gtk3/UI/Applet/GtkHostUIHandler.cs index b3f509a0..1d918d21 100644 --- a/src/Ryujinx.Gtk3/UI/Applet/GtkHostUIHandler.cs +++ b/src/Ryujinx.Gtk3/UI/Applet/GtkHostUIHandler.cs @@ -107,8 +107,6 @@ namespace Ryujinx.UI.Applet swkbdDialog.SetInputLengthValidation(args.StringLengthMin, args.StringLengthMax); swkbdDialog.SetInputValidation(args.KeyboardMode); - ((MainWindow)_parent).RendererWidget.NpadManager.BlockInputUpdates(); - if (swkbdDialog.Run() == (int)ResponseType.Ok) { inputText = swkbdDialog.InputEntry.Text; @@ -130,7 +128,6 @@ namespace Ryujinx.UI.Applet }); dialogCloseEvent.WaitOne(); - ((MainWindow)_parent).RendererWidget.NpadManager.UnblockInputUpdates(); userText = error ? null : inputText; -- cgit v1.2.3