Skip to content
Snippets Groups Projects
Commit 357a25b9 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Derp, map the raw key too.

parent eeab6b6b
No related branches found
No related tags found
No related merge requests found
Pipeline #8077 passed
...@@ -135,6 +135,7 @@ RETRO_CALLCONV void ...@@ -135,6 +135,7 @@ RETRO_CALLCONV void
retro_keyboard(bool down, unsigned keycode, uint32_t character, uint16_t key_modifiers) retro_keyboard(bool down, unsigned keycode, uint32_t character, uint16_t key_modifiers)
{ {
uint16_t add = 0; uint16_t add = 0;
if (down) { if (down) {
// TODO: Map properly... // TODO: Map properly...
if (keybuffill < KEYBUFSIZE) { if (keybuffill < KEYBUFSIZE) {
...@@ -147,6 +148,8 @@ retro_keyboard(bool down, unsigned keycode, uint32_t character, uint16_t key_mod ...@@ -147,6 +148,8 @@ retro_keyboard(bool down, unsigned keycode, uint32_t character, uint16_t key_mod
add = k->ctrl; add = k->ctrl;
else if (key_modifiers & RETROKMOD_SHIFT) else if (key_modifiers & RETROKMOD_SHIFT)
add = k->shift; add = k->shift;
else
add = k->key;
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment