mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-22 00:22:57 -05:00
The signature is inferred from PPSA12361: a 16-bit keycode, a second argument the title passes as 0, the type from sceConvertKeycodeGetImeKeyboardType and a UTF-16 output. The keycode is a USB HID keyboard usage and the unshifted US character is returned; a keycode without a character returns 0. A second argument or keyboard type other than 0 throws. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
10 lines
977 B
Markdown
10 lines
977 B
Markdown
# libSceConvertKeycode technical debt
|
|
|
|
### Unknown function info
|
|
|
|
- [sceConvertKeycodeGetCharacter](../../../core/libs/prx/libSceConvertKeycode/Export.cpp) (libSceConvertKeycode) - the signature `(uint16_t keycode, uint32_t, uint32_t keyboardType, char16_t* character)` is inferred from PPSA12361, which passes a 16-bit keycode, 0, the type from `sceConvertKeycodeGetImeKeyboardType` and a pointer it reads one UTF-16 unit from when the result is 0. The meaning of the second argument is unknown; a value other than 0 throws, and so does a keyboard type other than 0.
|
|
|
|
### Functional
|
|
|
|
- [sceConvertKeycodeGetCharacter](../../../core/libs/prx/libSceConvertKeycode/Export.cpp) (libSceConvertKeycode) takes the keycode as a USB HID keyboard usage and returns the unshifted character of the US layout for letters, digits, punctuation, space and the keypad. A keycode without a character returns 0 with the character 0; whether the console returns an error instead is not measured.
|