mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2025-02-08 06:06:43 +01:00
workaround for allegro bug in tilde handling on Mac OS X
This commit is contained in:
parent
6f7b7d3a9b
commit
d4c5028216
1 changed files with 5 additions and 1 deletions
|
@ -407,8 +407,12 @@ int main(int argc, char **argv){
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
else if (ev.type == ALLEGRO_EVENT_KEY_DOWN) {
|
else if (ev.type == ALLEGRO_EVENT_KEY_DOWN) {
|
||||||
PrintConsole(&game, "KEYCODE: %s", al_keycode_to_name(ev.keyboard.keycode));
|
/*PrintConsole(&game, "KEYCODE: %s", al_keycode_to_name(ev.keyboard.keycode));*/
|
||||||
|
#ifdef ALLEGRO_MACOSX
|
||||||
|
if ((ev.type == ALLEGRO_EVENT_KEY_DOWN) && (ev.keyboard.keycode == 104)) {
|
||||||
|
#else
|
||||||
if ((ev.type == ALLEGRO_EVENT_KEY_DOWN) && (ev.keyboard.keycode == ALLEGRO_KEY_TILDE)) {
|
if ((ev.type == ALLEGRO_EVENT_KEY_DOWN) && (ev.keyboard.keycode == ALLEGRO_KEY_TILDE)) {
|
||||||
|
#endif
|
||||||
game.showconsole = !game.showconsole;
|
game.showconsole = !game.showconsole;
|
||||||
}
|
}
|
||||||
else if ((game.debug) && (ev.type == ALLEGRO_EVENT_KEY_DOWN) && (ev.keyboard.keycode == ALLEGRO_KEY_F1)) {
|
else if ((game.debug) && (ev.type == ALLEGRO_EVENT_KEY_DOWN) && (ev.keyboard.keycode == ALLEGRO_KEY_F1)) {
|
||||||
|
|
Loading…
Reference in a new issue