- added glutIgnoreKeyRepeat in miniglut
[vrlugburz] / src / game.h
index 4551f63..7a2f7f5 100644 (file)
@@ -1,6 +1,19 @@
 #ifndef GAME_H_
 #define GAME_H_
 
+enum { DIR_N, DIR_E, DIR_S, DIR_W };
+
+enum {
+       INP_LEFT,
+       INP_RIGHT,
+       INP_FWD,
+       INP_BACK,
+       INP_LTURN,
+       INP_RTURN,
+
+       MAX_INP
+};
+
 enum {
        KEY_LEFT = 256,
        KEY_RIGHT,
@@ -11,6 +24,7 @@ enum {
 };
 
 long time_msec;
+int input_state[MAX_INP];
 
 int game_init(void);
 void game_shutdown(void);