Skip to content

Commit

Permalink
refactor: harmonize keyboard mapping with WinUAE - Backslash changed (#…
Browse files Browse the repository at this point in the history
…558)

- Map the keys exactly like WinUAE (F11 for Backslash)
- Disable german keyboard hack
  • Loading branch information
midwan committed Feb 1, 2025
1 parent 08670d3 commit d19fc07
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/osdep/amiberry_input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ int keyhack (const int scancode, const int pressed, const int num)
return -1;
}
}

#if 0
if (!keyboard_german)
return scancode;

Expand Down Expand Up @@ -420,6 +420,7 @@ int keyhack (const int scancode, const int pressed, const int num)
}
}
}
#endif
return scancode;
}

Expand Down
2 changes: 1 addition & 1 deletion src/osdep/keyboard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ static struct uae_input_device_kbr_default keytrans_amiga[] = {
{ SDL_SCANCODE_SEMICOLON, INPUTEVENT_KEY_SEMICOLON },
{ SDL_SCANCODE_APOSTROPHE, INPUTEVENT_KEY_SINGLEQUOTE },
{ SDL_SCANCODE_GRAVE, INPUTEVENT_KEY_BACKQUOTE },
{ SDL_SCANCODE_BACKSLASH, INPUTEVENT_KEY_BACKSLASH },
{ SDL_SCANCODE_BACKSLASH, INPUTEVENT_KEY_NUMBERSIGN },
{ SDL_SCANCODE_COMMA, INPUTEVENT_KEY_COMMA },
{ SDL_SCANCODE_PERIOD, INPUTEVENT_KEY_PERIOD },
{ SDL_SCANCODE_SLASH, INPUTEVENT_KEY_DIV },
Expand Down

0 comments on commit d19fc07

Please sign in to comment.