mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2025-02-01 11:06:44 +01:00
Android: honor tilde button for console toggling (you can attach a keyboard to Android device)
This commit is contained in:
parent
e5b3d67e50
commit
0a4580a762
1 changed files with 1 additions and 1 deletions
|
@ -471,7 +471,7 @@ SYMBOL_INTERNAL void libsuperderpy_mainloop(void *g) {
|
||||||
SetupViewport(game, game->viewport_config);
|
SetupViewport(game, game->viewport_config);
|
||||||
}
|
}
|
||||||
#ifdef ALLEGRO_ANDROID
|
#ifdef ALLEGRO_ANDROID
|
||||||
else if ((ev.type == ALLEGRO_EVENT_KEY_DOWN) && (ev.keyboard.keycode == ALLEGRO_KEY_MENU)) {
|
else if ((ev.type == ALLEGRO_EVENT_KEY_CHAR) && ((ev.keyboard.keycode == ALLEGRO_KEY_MENU) || (ev.keyboard.keycode == ALLEGRO_KEY_TILDE) || (ev.keyboard.keycode == ALLEGRO_KEY_BACKQUOTE))) {
|
||||||
#else
|
#else
|
||||||
else if ((ev.type == ALLEGRO_EVENT_KEY_CHAR) && ((ev.keyboard.keycode == ALLEGRO_KEY_TILDE) || (ev.keyboard.keycode == ALLEGRO_KEY_BACKQUOTE))) {
|
else if ((ev.type == ALLEGRO_EVENT_KEY_CHAR) && ((ev.keyboard.keycode == ALLEGRO_KEY_TILDE) || (ev.keyboard.keycode == ALLEGRO_KEY_BACKQUOTE))) {
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue