X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=mercenary-reloaded.git;a=blobdiff_plain;f=src%2Fmercenary%2Fmain.c;h=45d87e4bca4637f5df95041260555dcbe51d4981;hp=e62944bb6a779facc36fdbabe898935e2d7f28a5;hb=3c70467233fef462f9bc9a132019800386978cc8;hpb=01b8da4466a4b6d62cd333688b1b498fa82e2910 diff --git a/src/mercenary/main.c b/src/mercenary/main.c index e62944b..45d87e4 100644 --- a/src/mercenary/main.c +++ b/src/mercenary/main.c @@ -64,6 +64,7 @@ static int config_audio_filter = 1; static int config_render = 1; /* opengl render */ static int config_skip_intro = 0; static int config_multisampling = 8; +static int config_joystick = -1, config_joystick_x = -1, config_joystick_y = -1, config_joystick_fire = -1; #ifdef HAVE_OVR static double config_benson_size = 0.7; static double config_fov = FOV_JOLLY; @@ -113,13 +114,8 @@ static uint8_t *info_osd = NULL; static int help_view = 1; static int help_views = 0; static int32_t osd_timer = 0, border_timer = 0; -#ifdef HAVE_OVR -#define SCREEN_WIDTH 1344 -#define SCREEN_HEIGHT 800 -#else #define SCREEN_WIDTH (320*3) #define SCREEN_HEIGHT (200*3) -#endif #define IMAGE_WIDTH 320 #define IMAGE_HEIGHT 200 #define BENSON_AT_LINE 136 @@ -171,6 +167,12 @@ int parse_args(int argc, char *argv[]) print_info(" Set field-of-view. Default is %.0f.\n", FOV_NOVAGEN); print_info(" -i --skip-intro\n"); print_info(" Skip intro sequence approaching to Eris space port.\n"); + print_info(" -j --joystick | list\n"); + print_info(" Select given joystick number or show list. (default = 0, if available)\n"); + print_info(" --joystick-x \n"); + print_info(" --joystick-y \n"); + print_info(" --joystick-fire