From 380b95bc59e7dc419f89df951cdc086e792cb0ff Mon Sep 17 00:00:00 2001 From: Caian Benedicto Date: Tue, 12 Oct 2021 16:54:21 -0300 Subject: Inline software keyboard without input pop up dialog (#2180) * Initial implementation * Refactor dynamic text input keys out to facilitate configuration via UI * Fix code styling * Add per applet indirect layer handles * Remove static functions from SoftwareKeyboardRenderer * Remove inline keyboard reset delay * Remove inline keyboard V2 responses * Add inline keyboard soft-lock recovering * Add comments * Forward accept and cancel key names to the keyboard and add soft-lock prevention line * Add dummy window to handle paste events * Rework inline keyboard state machine and graphics * Implement IHostUiHandler interfaces on headless WindowBase class * Add inline keyboard assets * Fix coding style * Fix coding style * Change mode cycling shortcut to F6 * Fix invalid calc size error in games using extended calc * Remove unnecessary namespaces --- Ryujinx.HLE/IHostUiHandler.cs | 40 ---------------------------------------- 1 file changed, 40 deletions(-) delete mode 100644 Ryujinx.HLE/IHostUiHandler.cs (limited to 'Ryujinx.HLE/IHostUiHandler.cs') diff --git a/Ryujinx.HLE/IHostUiHandler.cs b/Ryujinx.HLE/IHostUiHandler.cs deleted file mode 100644 index b85fc356..00000000 --- a/Ryujinx.HLE/IHostUiHandler.cs +++ /dev/null @@ -1,40 +0,0 @@ -using Ryujinx.HLE.HOS.Applets; -using Ryujinx.HLE.HOS.Services.Am.AppletOE.ApplicationProxyService.ApplicationProxy.Types; - -namespace Ryujinx.HLE -{ - public interface IHostUiHandler - { - /// - /// Displays an Input Dialog box to the user and blocks until text is entered. - /// - /// Text that the user entered. Set to `null` on internal errors - /// True when OK is pressed, False otherwise. Also returns True on internal errors - bool DisplayInputDialog(SoftwareKeyboardUiArgs args, out string userText); - - /// - /// Displays a Message Dialog box to the user and blocks until it is closed. - /// - /// True when OK is pressed, False otherwise. - bool DisplayMessageDialog(string title, string message); - - /// - /// Displays a Message Dialog box specific to Controller Applet and blocks until it is closed. - /// - /// True when OK is pressed, False otherwise. - bool DisplayMessageDialog(ControllerAppletUiArgs args); - - /// - /// Tell the UI that we need to transisition to another program. - /// - /// The device instance. - /// The program kind. - /// The value associated to the . - void ExecuteProgram(Switch device, ProgramSpecifyKind kind, ulong value); - - /// Displays a Message Dialog box specific to Error Applet and blocks until it is closed. - /// - /// False when OK is pressed, True when another button (Details) is pressed. - bool DisplayErrorAppletDialog(string title, string message, string[] buttonsText); - } -} \ No newline at end of file -- cgit v1.2.3