feat(libSceIme): implement sceImeGetPanelPositionAndForm #1713

Merged
MathiasDevelopes merged 2 commits from upstream-pr/1713 into main 2026-10-09 22:08:14 +00:00
MathiasDevelopes commented 2026-10-08 17:22:53 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MathiasDevelopes on 2026-10-08T17:22:53Z.


What

Adds sceImeGetPanelPositionAndForm (NID T6FYjZXG93o), which reports the position and form of the open IME panel. While sceImeOpen is unimplemented, the panel cannot be open. The query therefore returns SCE_IME_ERROR_NOT_OPENED (0x80bc0002) and leaves the output untouched, like sceImeSetCaret, sceImeSetText and sceImeSetTextGeometry. As with sceImeSetCaret, the closed panel is reported before a null output. The output uses the existing PositionAndForm type that sceImeDialogGetPanelPositionAndForm already uses.

When #1008 (sceImeOpen and panel lifecycle) lands, this function should report the open panel's position and form instead.

Tested

Windows 11. guest_ime_parameters now checks that the query returns NOT_OPENED for a valid and a null output and writes nothing, and it passes along with guest_ime_keyboard. tools/check_conventions.py --base origin/main passes. PPSA07906 (Unreal Engine 5) imports this function from its bundled Epic Online Services module (kitt-ps5-shipping.prx) and failed at startup with an unresolved import; with the export it starts.

Checklist

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4790431414 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1713). Originally posted by [MathiasDevelopes](https://github.com/MathiasDevelopes) on 2026-10-08T17:22:53Z. --- ### What Adds `sceImeGetPanelPositionAndForm` (NID `T6FYjZXG93o`), which reports the position and form of the open IME panel. While `sceImeOpen` is unimplemented, the panel cannot be open. The query therefore returns `SCE_IME_ERROR_NOT_OPENED` (`0x80bc0002`) and leaves the output untouched, like `sceImeSetCaret`, `sceImeSetText` and `sceImeSetTextGeometry`. As with `sceImeSetCaret`, the closed panel is reported before a null output. The output uses the existing `PositionAndForm` type that `sceImeDialogGetPanelPositionAndForm` already uses. When #1008 (sceImeOpen and panel lifecycle) lands, this function should report the open panel's position and form instead. ### Tested Windows 11. `guest_ime_parameters` now checks that the query returns `NOT_OPENED` for a valid and a null output and writes nothing, and it passes along with `guest_ime_keyboard`. `tools/check_conventions.py --base origin/main` passes. PPSA07906 (Unreal Engine 5) imports this function from its bundled Epic Online Services module (`kitt-ps5-shipping.prx`) and failed at startup with an unresolved import; with the export it starts. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [[technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md)](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed in [[TechnicalDebt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/TechnicalDebt.md#silent-stubs)](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/TechnicalDebt.md#silent-stubs) - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] AI-assisted: yes
copilot-pull-request-reviewer[bot] commented 2026-10-08 17:23:02 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by copilot-pull-request-reviewer[bot] on 2026-10-08T17:23:02Z.

Review: COMMENTED


Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5460442353 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1713#pullrequestreview-5460442353). Originally posted by [copilot-pull-request-reviewer[bot]](https://github.com/apps/copilot-pull-request-reviewer) on 2026-10-08T17:23:02Z. **Review:** COMMENTED --- Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.
github-actions[bot] commented 2026-10-08 17:23:18 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-08T17:23:18Z.


Progress report (e603f3f → 4dfeac2)

➖ System libraries: 85.35% (+0.0%, +1 implemented functions)

✅ 1 implemented
Library Name
libSceIme sceImeGetPanelPositionAndForm
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6065336453 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1713#issuecomment-6065336453). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-08T17:23:18Z. --- <!-- progress-report --> ### Progress report (e603f3f → 4dfeac2) ➖ **System libraries**: 85.35% (+0.0%, +1 implemented functions) <details> <summary>✅ 1 implemented</summary> | Library | Name | | - | - | | libSceIme | `sceImeGetPanelPositionAndForm` | </details>
adriadam10 commented 2026-10-09 21:37:24 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-09T21:37:24Z.


Checked the export against the neighbouring sceImeSetCaret/SetText/SetTextGeometry (same closed-panel error, output untouched), built and ran guest_ime_parameters on top of current main (passes, and fails to link without the change).

Added one commit, rebased onto current main: moved the TechnicalDebt entry from the end of "Unknown function info" into the middle of the list, since lines at the end of a section conflict with every PR that appends there.

Merging once CI is green.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6089674400 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1713#issuecomment-6089674400). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-09T21:37:24Z. --- Checked the export against the neighbouring `sceImeSetCaret`/`SetText`/`SetTextGeometry` (same closed-panel error, output untouched), built and ran `guest_ime_parameters` on top of current main (passes, and fails to link without the change). Added one commit, rebased onto current `main`: moved the TechnicalDebt entry from the end of "Unknown function info" into the middle of the list, since lines at the end of a section conflict with every PR that appends there. Merging once CI is green.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!1713
No description provided.