Skip to content

Commit d19fc07

Browse files
committed
refactor: harmonize keyboard mapping with WinUAE - Backslash changed (#558)
- Map the keys exactly like WinUAE (F11 for Backslash) - Disable german keyboard hack
1 parent 08670d3 commit d19fc07

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/osdep/amiberry_input.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ int keyhack (const int scancode, const int pressed, const int num)
364364
return -1;
365365
}
366366
}
367-
367+
#if 0
368368
if (!keyboard_german)
369369
return scancode;
370370

@@ -420,6 +420,7 @@ int keyhack (const int scancode, const int pressed, const int num)
420420
}
421421
}
422422
}
423+
#endif
423424
return scancode;
424425
}
425426

src/osdep/keyboard.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ static struct uae_input_device_kbr_default keytrans_amiga[] = {
119119
{ SDL_SCANCODE_SEMICOLON, INPUTEVENT_KEY_SEMICOLON },
120120
{ SDL_SCANCODE_APOSTROPHE, INPUTEVENT_KEY_SINGLEQUOTE },
121121
{ SDL_SCANCODE_GRAVE, INPUTEVENT_KEY_BACKQUOTE },
122-
{ SDL_SCANCODE_BACKSLASH, INPUTEVENT_KEY_BACKSLASH },
122+
{ SDL_SCANCODE_BACKSLASH, INPUTEVENT_KEY_NUMBERSIGN },
123123
{ SDL_SCANCODE_COMMA, INPUTEVENT_KEY_COMMA },
124124
{ SDL_SCANCODE_PERIOD, INPUTEVENT_KEY_PERIOD },
125125
{ SDL_SCANCODE_SLASH, INPUTEVENT_KEY_DIV },

0 commit comments

Comments
 (0)