0
0
Fork 0
mirror of https://git.sr.ht/~rabbits/uxn synced 2024-12-18 06:20:18 +00:00

Fixed issue with function keys

This commit is contained in:
neauoire 2021-12-27 13:50:39 -08:00
parent 3c47876d5e
commit 004fa800ef

View file

@ -510,10 +510,10 @@ run(Uxn *u)
controller_key(devctrl, event.text.text[0]); controller_key(devctrl, event.text.text[0]);
else if(get_key(&event)) else if(get_key(&event))
controller_key(devctrl, get_key(&event)); controller_key(devctrl, get_key(&event));
else if(get_button(&event)) { else if(get_button(&event))
controller_down(devctrl, get_button(&event)); controller_down(devctrl, get_button(&event));
else
do_shortcut(u, &event); do_shortcut(u, &event);
}
} else if(event.type == SDL_KEYUP) } else if(event.type == SDL_KEYUP)
controller_up(devctrl, get_button(&event)); controller_up(devctrl, get_button(&event));
else if(event.type == SDL_JOYBUTTONDOWN) else if(event.type == SDL_JOYBUTTONDOWN)