X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fgame.c;h=a747a626204dca623b790bc1c79dc3abfd7d40ce;hb=f2fc78720fec7e26098a88bfc47613d4d1d4e1c6;hp=7dbdef8348fe20deb1759b0f3bf4478ae5221df4;hpb=2d5e5d49191bf0c9d89960ba683541d6b1e7dc92;p=deeprace diff --git a/src/game.c b/src/game.c index 7dbdef8..a747a62 100644 --- a/src/game.c +++ b/src/game.c @@ -7,8 +7,11 @@ #include "input.h" int mouse_x, mouse_y, mouse_state[3]; +int mouse_grabbed; +unsigned int modkeys; int win_width, win_height; float win_aspect; +int fullscr; struct game_screen *cur_scr; @@ -112,7 +115,15 @@ void game_keyboard(int key, int press) switch(key) { case 27: game_quit(); - break; + return; + + case '\n': + case '\r': + if(modkeys & GKEY_MOD_ALT) { + case GKEY_F11: + game_fullscreen(-1); + } + return; } }