mirror of
https://git.743378673.xyz/MeloNX/MeloNX.git
synced 2025-08-02 19:57:11 +02:00
Add Software Keyboard, Edit maxSets and more
This commit is contained in:
parent
1316e97303
commit
be0a634189
28 changed files with 283 additions and 1709 deletions
|
@ -460,12 +460,19 @@ namespace Ryujinx.Headless.SDL2
|
|||
Exit();
|
||||
}
|
||||
|
||||
public bool DisplayInputDialog(SoftwareKeyboardUiArgs args, out string userText)
|
||||
public void DisplayInputDialog(SoftwareKeyboardUiArgs args, Action<string> onTextEntered)
|
||||
{
|
||||
// SDL2 doesn't support input dialogs
|
||||
userText = "Ryujinx";
|
||||
|
||||
return true;
|
||||
// Trying to use Objective-C on iDevices
|
||||
if (OperatingSystem.IsIOS())
|
||||
{
|
||||
AlertHelper.ShowAlertWithTextInput(args.HeaderText, args.SubtitleText, args.GuideText, (inputText) =>
|
||||
{
|
||||
onTextEntered?.Invoke(inputText);
|
||||
});
|
||||
} else {
|
||||
onTextEntered?.Invoke("");
|
||||
}
|
||||
}
|
||||
|
||||
public bool DisplayMessageDialog(string title, string message)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue