X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=mercenary-reloaded.git;a=blobdiff_plain;f=src%2Fmercenary%2Fmain.c;h=45d87e4bca4637f5df95041260555dcbe51d4981;hp=1fa655a85173f7c4c7e050d5b8bf2f945a693f15;hb=3c70467233fef462f9bc9a132019800386978cc8;hpb=34f84414002dd02f04785726700a8a77df4efd62 diff --git a/src/mercenary/main.c b/src/mercenary/main.c index 1fa655a..45d87e4 100644 --- a/src/mercenary/main.c +++ b/src/mercenary/main.c @@ -55,7 +55,7 @@ static int config_ctrl_c = 0; static int config_amiga_speed = 0; /* fast speed */ -static double config_fps = 16.0; +static double config_fps = 10.0; #if !defined(_WIN32) static const char *config_gamesave_dir = ".mercenary"; #endif @@ -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