HLE: Applets: Software keyboard: update cursor position on SetInputText

fixes cursor being at 0 position even when text is present, especially annoying for handheld devices with kde virtual keyboard, which is pretty bad, with no way to move the cursor or delete text backward
This commit is contained in:
Xam authored and KeatonTheBot committed 2026-05-27 18:18:42 -05:00
1 parent 047dbf3db7
commit 8d7d8f344c
1 file changed
+1
@@ -438,6 +438,7 @@ namespace Ryujinx.HLE.HOS.Applets
if ((newCalc.Flags & KeyboardCalcFlags.SetInputText) != 0) if ((newCalc.Flags & KeyboardCalcFlags.SetInputText) != 0)
{ {
_textValue = newCalc.InputText; _textValue = newCalc.InputText;
_cursorBegin = _textValue.Length;
updateText = true; updateText = true;
Logger.Debug?.Print(LogClass.ServiceAm, $"Input text set to {_textValue}"); Logger.Debug?.Print(LogClass.ServiceAm, $"Input text set to {_textValue}");