Skip to content

Commit

Permalink
MorphOS: fix key event
Browse files Browse the repository at this point in the history
  • Loading branch information
BeWorld2018 authored Nov 16, 2024
1 parent 935379e commit 2cd5ccd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/video/morphos/SDL_mosevents.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 2cd5ccd

Please sign in to comment.