From 2cd5ccd347d0ebe3fc4ac51bfa61a98422de418c Mon Sep 17 00:00:00 2001 From: BeWorld <36823759+BeWorld2018@users.noreply.github.com> Date: Sat, 16 Nov 2024 08:47:08 +0100 Subject: [PATCH] MorphOS: fix key event --- src/video/morphos/SDL_mosevents.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/video/morphos/SDL_mosevents.c b/src/video/morphos/SDL_mosevents.c index e76dc28dce760..6732888fc7d74 100644 --- a/src/video/morphos/SDL_mosevents.c +++ b/src/video/morphos/SDL_mosevents.c @@ -137,8 +137,8 @@ MOS_DispatchRawKey(_THIS, struct IntuiMessage *m, const SDL_WindowData *data) default: if (rawkey < sizeof(morphos_scancode_table) / sizeof(morphos_scancode_table[0])) { SDL_Scancode s = morphos_scancode_table[rawkey]; - if (m->Code <= 0x80) { - char text[5] = { 0 }; + if (m->Code <= 127) { + char text[10]; int length = MOS_TranslateUnicode(m, text); SDL_SendKeyboardKey(SDL_PRESSED, s); if (length > 0) {