uxn

Varvara Ordinator, written in ANSI C(SDL2)
git clone https://git.eamoncaddigan.net/uxn.git
Log | Files | Refs | README | LICENSE

commit 004fa800ef4045726f8251a7c05b75458b50829f
parent 3c47876d5e305d63b5393690430804aa39571805
Author: neauoire <aliceffekt@gmail.com>
Date:   Mon, 27 Dec 2021 13:50:39 -0800

Fixed issue with function keys

Diffstat:
Msrc/uxnemu.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/uxnemu.c b/src/uxnemu.c @@ -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)