mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-07 22:55:40 +12:00
panda_sdl: Use sym instead of scancode
This commit is contained in:
parent
428401870b
commit
55d99734e1
1 changed files with 2 additions and 2 deletions
|
@ -95,7 +95,7 @@ void FrontendSDL::run() {
|
||||||
case SDL_KEYDOWN: {
|
case SDL_KEYDOWN: {
|
||||||
if (emu.romType == ROMType::None) break;
|
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) {
|
if (key != HID::Keys::Null) {
|
||||||
switch (key) {
|
switch (key) {
|
||||||
case HID::Keys::CirclePadRight:
|
case HID::Keys::CirclePadRight:
|
||||||
|
@ -138,7 +138,7 @@ void FrontendSDL::run() {
|
||||||
case SDL_KEYUP: {
|
case SDL_KEYUP: {
|
||||||
if (emu.romType == ROMType::None) break;
|
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) {
|
if (key != HID::Keys::Null) {
|
||||||
switch (key) {
|
switch (key) {
|
||||||
// Err this is probably not ideal
|
// Err this is probably not ideal
|
||||||
|
|
Loading…
Add table
Reference in a new issue