0
0
Fork 0
mirror of https://git.sr.ht/~rabbits/uxn synced 2024-11-23 22:35:11 +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]);
else if(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));
else
do_shortcut(u, &event);
}
} else if(event.type == SDL_KEYUP)
controller_up(devctrl, get_button(&event));
else if(event.type == SDL_JOYBUTTONDOWN)