Fixed issue with function keys

This commit is contained in:
neauoire 2021-12-27 13:50:39 -08:00
parent 3c47876d5e
commit 004fa800ef
1 changed files with 2 additions and 2 deletions

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)