Skip to content

Commit

Permalink
Map SCANCODE_GRAVE to VK_TILDE
Browse files Browse the repository at this point in the history
  • Loading branch information
caiiiycuk committed Mar 19, 2024
1 parent f5864a0 commit 5f64b9b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Source/Util/SystemUtil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@ bool isPressed(uint32_t key) {

sKey::sKey(SDL_Keysym keysym, bool set_by_async_funcs) {
key = 0;
if (keysym.scancode == SDL_SCANCODE_GRAVE) {
keysym.sym = SDLK_BACKQUOTE;
}
switch (keysym.sym) {
case SDLK_LGUI:
case SDLK_RGUI:
Expand Down

0 comments on commit 5f64b9b

Please sign in to comment.