struct SetupJoystickInfo
{
+ char device_name[MAX_FILENAME_LEN];
+ int xleft, xmiddle, xright;
+ int yupper, ymiddle, ylower;
int snap;
int bomb;
};
KeySym bomb;
};
+struct SetupInputInfo
+{
+ boolean use_joystick;
+ struct SetupJoystickInfo joy;
+ struct SetupKeyboardInfo key;
+};
+
struct SetupInfo
{
- boolean sound_on;
- boolean sound_loops_on;
- boolean sound_music_on;
- boolean sound_simple_on;
- boolean toons_on;
- boolean direct_draw_on;
- boolean scroll_delay_on;
- boolean soft_scrolling_on;
- boolean fading_on;
- boolean autorecord_on;
+ boolean sound;
+ boolean sound_loops;
+ boolean sound_music;
+ boolean sound_simple;
+ boolean toons;
+ boolean double_buffering;
+ boolean direct_draw; /* !double_buffering (redundant!) */
+ boolean scroll_delay;
+ boolean soft_scrolling;
+ boolean fading;
+ boolean autorecord;
boolean quick_doors;
- struct
- {
- boolean use_joystick;
- int joystick_nr;
- struct SetupJoystickInfo joy;
- struct SetupKeyboardInfo key;
- } input[MAX_PLAYERS];
+ boolean team_mode;
+
+ char login_name[MAX_NAMELEN];
+ char alias_name[MAX_NAMELEN];
+
+ struct SetupInputInfo input[MAX_PLAYERS];
};
struct SetupFileList
int index_nr, client_nr, element_nr;
- byte action;
+ byte action; /* action from local input device */
+ byte effective_action; /* action aknowledged from network server
+ or summarized over all configured input
+ devices when in single player mode */
- char login_name[MAX_NAMELEN];
- char alias_name[MAX_NAMELEN];
+ int joystick_fd; /* file descriptor of player's joystick */
int jx,jy, last_jx,last_jy;
int MovDir, MovPos, GfxPos;
} pos[MAX_TAPELEN];
};
-struct JoystickInfo
-{
- int xleft, xright, xmiddle;
- int yupper, ylower, ymiddle;
-};
-
extern Display *display;
extern Visual *visual;
extern int screen;
extern int sound_device;
extern char *sound_device_name;
extern int joystick_device;
-extern char *joystick_device_name[2];
+extern char *joystick_device_name[];
extern char *level_directory;
extern int width, height;