mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-21 08:12:09 -05:00
Keyboard input follows libSceMouse: the video out event loop forwards SDL key and focus events, whose scancodes are USB HID usages, and the library keeps the pressed keys, modifiers and lock LEDs in a 16-entry history for sceKeyboardRead and a snapshot for sceKeyboardReadState. sceKeyboardGetKey2Char translates the 101-key arrangement; the 106-key one throws and is listed as technical debt. KeyboardData holds 16 key codes (96 bytes), not 6. Co-Authored-By: Claude <noreply@anthropic.com>
15 lines
277 B
C++
15 lines
277 B
C++
#ifndef CORE_LIBS_PRX_LIBSCEVIDEOOUT_KEYBOARDINPUT_HPP
|
|
#define CORE_LIBS_PRX_LIBSCEVIDEOOUT_KEYBOARDINPUT_HPP
|
|
|
|
#include "SDL_events.h"
|
|
|
|
class KeyboardInput {
|
|
public:
|
|
void HandleEvent(const SDL_Event& event, unsigned windowId);
|
|
|
|
private:
|
|
bool focused = true;
|
|
};
|
|
|
|
#endif
|