Fix: sym->sym accidentally changed to sym prevented keys working with SDL.

master
Peter Nelson 2 months ago committed by Peter Nelson
parent 74e09abf76
commit cdfffb551c

@ -310,7 +310,7 @@ static uint ConvertSdlKeyIntoMy(SDL_Keysym *sym, char32_t *character)
bool unprintable = false;
for (const auto &map : _vk_mapping) {
if (IsInsideBS(sym, map.vk_from, map.vk_count)) {
if (IsInsideBS(sym->sym, map.vk_from, map.vk_count)) {
key = sym->sym - map.vk_from + map.map_to;
unprintable = map.unprintable;
break;

@ -438,7 +438,7 @@ static uint ConvertSdlKeyIntoMy(SDL_keysym *sym, char32_t *character)
uint key = 0;
for (const auto &map : _vk_mapping) {
if (IsInsideBS(sym, map.vk_from, map.vk_count)) {
if (IsInsideBS(sym->sym, map.vk_from, map.vk_count)) {
key = sym->sym - map.vk_from + map.map_to;
break;
}

Loading…
Cancel
Save