feat(libSceIme): implement keyboard info and mode queries #738
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/738"
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 adriadam10 on 2026-10-05T18:44:53Z.
What
Implements
sceImeKeyboardGetInfoandsceImeKeyboardSetMode(libSceIme), on top of the existing keyboard open/close state.sceImeKeyboardGetInfo: nullinfo→0x80bc0031(INVALID_ADDRESS); no keyboard open →0x80bc0002(NOT_OPENED); otherwise0x80bc0023(NO_RESOURCE_ID) for every id, since no resource id is ever handed out (no IME keyboard device is reported).infois not written. Follows KytyPS5ImeKeyboardGetInfo.sceImeKeyboardSetMode: user-1→0x80bc0010(INVALID_USER_ID); keyboard not open for that user → NOT_OPENED; mode bits outside0x7f→0x80bc0024(INVALID_MODE); otherwise 0. Follows KytyPS5ImeKeyboardSetMode; the0x7fmask is the union of theSCE_IME_KEYBOARD_MODE_*bits in fpPS4 (ps4_libsceime.pas, 0x01..0x40).ime_error.h).Where the references differ:
sceImeKeyboardOpen/Close), soSetModechecks the given user andGetInfochecks whether any keyboard is open.GetInfochecks "not opened" before the null pointer and reports the host keyboard; KytyPS5's order (null pointer first) is used here.return ORBIS_OK,GetInfozeroesinfo).The mode has no effect because no IME keyboard events are delivered; both are listed in TechnicalDebt (Functional).
#696 (
sceImeKeyboardGetResourceId) adds the same two error constants next to the existing ones: whichever merges second needs a trivial rebase of that block. No function overlap.Tested
Linux, GCC (Release and a fast build). New guest test
guest_ime_keyboard(core/libs/tests/GuestImeKeyboard.cpp, registered in ctest): every error path, the closed/open/closed sequence, mode bits 0/0x7f/0x41 accepted and 0x80/0x80000001 rejected,infoleft untouched. Onmainboth exports throw (NotImplemented_nid_no_patch). Each check was verified to fail when its piece of the implementation is removed.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)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-05T18:45:18Z.
Progress report (
bc24783→58263b5)📈 System libraries: 79.6% (+0.06%, +2 implemented functions)
✅ 2 implemented
sceImeKeyboardGetInfosceImeKeyboardSetModeImported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-05T20:30:17Z.
Thanks for this. It needs a rebase:
docs/dev/TechnicalDebt.mdconflicts with currentmain, where #649 added itssceAudioOut2Set3DLatencyline at the same spot as yoursceImeKeyboardGetInfoline. Keeping both lines is enough.I checked the rest with that resolved. Both NIDs match the names, the error codes and the mode mask are consistent with what
sceImeKeyboardOpenalready records, andguest_ime_keyboardfails on main's code and passes with the change (Linux, GCC). One note for later: #696 addsErrorConnectionFailednext to the same constants inlibSceIme/Export.cpp, so whichever of the two lands second will need a one-line rebase there.Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-05T22:30:27Z.
Rebased on current
main: kept both thesceAudioOut2Set3DLatencyandsceImeKeyboardGetInfolines.guest_ime_keyboardpasses.