Fixed issue with function keys
This commit is contained in:
parent
3c47876d5e
commit
004fa800ef
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue