Skip to content

Commit

Permalink
Merge pull request wheremyfoodat#491 from GPUCode/master
Browse files Browse the repository at this point in the history
panda_sdl: Use sym instead of scancode
  • Loading branch information
wheremyfoodat authored Apr 8, 2024
2 parents 4284018 + 55d9973 commit 9884663
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/panda_sdl/frontend_sdl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ void FrontendSDL::run() {
case SDL_KEYDOWN: {
if (emu.romType == ROMType::None) break;

u32 key = getMapping(event.key.keysym.scancode);
u32 key = getMapping(event.key.keysym.sym);
if (key != HID::Keys::Null) {
switch (key) {
case HID::Keys::CirclePadRight:
Expand Down Expand Up @@ -138,7 +138,7 @@ void FrontendSDL::run() {
case SDL_KEYUP: {
if (emu.romType == ROMType::None) break;

u32 key = getMapping(event.key.keysym.scancode);
u32 key = getMapping(event.key.keysym.sym);
if (key != HID::Keys::Null) {
switch (key) {
// Err this is probably not ideal
Expand Down

0 comments on commit 9884663

Please sign in to comment.