feat(libSceIme): implement sceImeKeyboardGetResourceId #696
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/696"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by tv7 on 2026-10-05T16:13:00Z.
What
sceImeKeyboardGetResourceIdwas aNotImplementedstub onmain. It now reports that no USB keyboard is connected, with the same checks as shadPS4, where the comment says some Unity games need it:INVALID_ADDRESS(0x80bc0031)-1returnsINVALID_USER_ID(0x80bc0010)Both of these leave the array untouched. Otherwise the array is cleared and given the user id, and the result is:
NOT_OPENED(0x80bc0002) whensceImeKeyboardOpenhas not opened a keyboard for that user, using the per-user set already onmainCONNECTION_FAILED(0x80bc0004) when it haslibSceKeyboardalready exposes the host keyboard, but IME keyboard events are not delivered to the handler, so reporting no keyboard through the IME is the consistent answer for now. This is recorded under Functional inTechnicalDebt.md.guest_ime_parametersgainsCheckKeyboardResourceIds:sceImeKeyboardCloseTested
ctest, 288/288 passed.tools/progress.pyagainstmain: +1 implemented function.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-05T19:45:48Z.
Thanks for this. It needs a rebase:
docs/dev/TechnicalDebt.mdconflicts with currentmainat the end of the Functional list, where your newsceImeKeyboardGetResourceIdline sits. Keeping both sides there is enough.I checked the rest with that conflict resolved. The NID
dKadqZFgKKQmatches the name, and it is exported bylibSceIme.prxandlibSceImeBackend.prx, the same as the other keyboard functions. The checks and error codes follow shadPS4, and using the per-user set forNOT_OPENEDversusCONNECTION_FAILEDfits whatsceImeKeyboardOpenalready records.guest_ime_parametersfails on main's code and passes with the change, also 20 times in a row on Linux, and the full ctest passes with it merged (Linux, GCC).Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-06T05:34:23Z.
An update to my rebase note: #794 (closed IME panel) has landed, so there are more conflicts with current main now, though they're still additive:
core/libs/prx/libSceIme/Export.cpp: keep main's version and add yourErrorConnectionFailedconstant.core/libs/tests/GuestImeParameters.cpp: keep main'ssceImeClose/SetCaret/SetText/SetTextGeometrydeclarations andCheckClosedPanel(), and add your keyboard declarations andCheckKeyboardResourceIds()(and both calls inmain()).docs/dev/TechnicalDebt.md: keep main's lines at the end of the Functional list and add yours after them.Imported from boykopovar/AnyPS5. Originally posted by merwie on 2026-10-06T09:00:48Z.
Data point: PPSA12544 (Hollow Knight: Silksong, Unity) calls
sceImeKeyboardGetResourceIdat startup and stops on themainstub. AnsweringNOT_OPENED/CONNECTION_FAILEDas this PR does lets it continue to its title menu (bring-up: #726). I closed my duplicate #845 in favour of this one.Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-06T09:27:12Z.
Progress report (
481c85e→54f0e03)📈 System libraries: 82.34% (+0.03%, +1 implemented functions)
✅ 1 implemented
sceImeKeyboardGetResourceIdImported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-06T09:27:52Z.
Thanks, the rebase resolves all three files as described:
ErrorConnectionFailedsits next to main's constants, the keyboard declarations andCheckKeyboardResourceIds()followCheckClosedPanel(), and your TechnicalDebt line comes after main's. It merges cleanly with main now.