rnd-19981029-1
[rocksndiamonds.git] / src / main.c
index 509e038f41914eeb21a7c294500daf97f54baa98..8cd26a117ba0cbb635ae8b05af7d80785d7e0054 100644 (file)
@@ -42,7 +42,14 @@ int          sound_pipe[2];
 int            sound_device;
 char          *sound_device_name = SOUND_DEVICE;
 int            joystick_device = 0;
-char          *joystick_device_name[2] = { DEV_JOYSTICK_0, DEV_JOYSTICK_1 };
+char          *joystick_device_name[MAX_PLAYERS] =
+{
+  DEV_JOYSTICK_0,
+  DEV_JOYSTICK_1,
+  DEV_JOYSTICK_2,
+  DEV_JOYSTICK_3
+};
+
 char          *level_directory = LEVEL_PATH;
 int            width, height;
 
@@ -105,14 +112,8 @@ struct SoundInfo   Sound[NUM_SOUNDS];
 struct RecordingInfo   tape;
 struct OptionInfo      options;
 struct SetupInfo       setup;
-
-struct JoystickInfo joystick[2] =
-{
-  { JOYSTICK_XLEFT, JOYSTICK_XRIGHT, JOYSTICK_XMIDDLE,
-    JOYSTICK_YUPPER, JOYSTICK_YLOWER, JOYSTICK_YMIDDLE },
-  { JOYSTICK_XLEFT, JOYSTICK_XRIGHT, JOYSTICK_XMIDDLE,
-    JOYSTICK_YUPPER, JOYSTICK_YLOWER, JOYSTICK_YMIDDLE }
-};
+struct SetupFileList   *setup_list = NULL;
+struct SetupFileList   *level_setup_list = NULL;
 
 /* data needed for playing sounds */
 char *sound_name[NUM_SOUNDS] =