- fixed joystick code a bit
[supertux.git] / src / globals.h
index eb56df5..c476a3c 100644 (file)
@@ -24,7 +24,11 @@ extern std::string datadir;
 extern SDL_Surface * screen;
 extern text_type black_text, gold_text, white_text, white_small_text, white_big_text, blue_text, red_text, yellow_nums;
 
-extern int use_gl, use_joystick, use_fullscreen, debug_mode, show_fps;
+extern bool use_gl;
+extern bool use_joystick;
+extern bool use_fullscreen;
+extern bool debug_mode;
+extern bool show_fps;
 
 /** The number of the joystick that will be use in the game */
 extern int joystick_num;
@@ -36,4 +40,6 @@ extern char *st_dir, *st_save_dir;
 
 extern SDL_Joystick * js;
 
+#define JOYSTICK_DEAD_ZONE 4096
+
 #endif /* SUPERTUX_GLOBALS_H */