- introduced new function wait_for_event
[supertux.git] / src / globals.h
1 /*
2   globals.h
3   
4   Super Tux - Global Variabls
5   
6   by Bill Kendrick
7   bill@newbreedsoftware.com
8   http://www.newbreedsoftware.com/supertux/
9   
10   April 11, 2000 - March 15, 2004
11 */
12
13
14 #ifndef SUPERTUX_GLOBALS_H
15 #define SUPERTUX_GLOBALS_H
16
17 #include <string>
18 #include <SDL.h>
19 #include "text.h"
20 #include "menu.h"
21 #include "mousecursor.h"
22
23 extern std::string datadir;
24
25 extern SDL_Surface * screen;
26 extern text_type black_text, gold_text, white_text, white_small_text, white_big_text, blue_text, red_text, yellow_nums;
27
28 extern MouseCursor * mouse_cursor;
29
30 extern bool use_gl;
31 extern bool use_joystick;
32 extern bool use_fullscreen;
33 extern bool debug_mode;
34 extern bool show_fps;
35
36 /** The number of the joystick that will be use in the game */
37 extern int joystick_num;
38 extern char* level_startup_file;
39 extern bool launch_worldmap_mode;
40
41 /* SuperTux directory ($HOME/.supertux) and save directory($HOME/.supertux/save) */
42 extern char* st_dir;
43 extern char* st_save_dir;
44
45 extern SDL_Joystick * js;
46
47 int wait_for_event(SDL_Event& event,unsigned int min_delay = 0, unsigned int max_delay = 0, bool empty_events = false);
48
49 #define JOYSTICK_DEAD_ZONE 4096
50
51 #endif /* SUPERTUX_GLOBALS_H */