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:
parent
3c47876d5e
commit
004fa800ef
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue