#define SCALING_QUALITY_DEFAULT SCALING_QUALITY_LINEAR
+/* values for touch control */
+#define TOUCH_CONTROL_VIRTUAL_BUTTONS "virtual_buttons"
+#define TOUCH_CONTROL_WIPE_GESTURES "wipe_gestures"
+
+#define TOUCH_CONTROL_DEFAULT TOUCH_CONTROL_VIRTUAL_BUTTONS
+
+#define TOUCH_MOVE_DISTANCE_DEFAULT 2
+#define TOUCH_DROP_DISTANCE_DEFAULT 5
+
+
/* default input keys */
#define DEFAULT_KEY_LEFT KSYM_Left
#define DEFAULT_KEY_RIGHT KSYM_Right
/* default values for undefined configuration file parameters */
#define ARG_UNDEFINED "-1000000"
-#define ARG_UNDEFINED_VALUE (atoi(ARG_UNDEFINED))
+#define ARG_UNDEFINED_VALUE (-1000000)
+
+/* default value for off-screen positions */
+#define POS_OFFSCREEN (-1000000)
/* definitions for game sub-directories */
#ifndef RO_GAME_DIR
int version_minor;
int version_patch;
+ char *(*window_title_function)(void);
void (*exit_message_function)(char *, va_list);
void (*exit_function)(int);
};
Key snap, drop;
};
+struct SetupTouchInfo
+{
+ char *control_type;
+ int move_distance;
+ int drop_distance;
+};
+
struct SetupInputInfo
{
boolean use_joystick;
struct SetupEditorCascadeInfo editor_cascade;
struct SetupShortcutInfo shortcut;
struct SetupInputInfo input[MAX_PLAYERS];
+ struct SetupTouchInfo touch;
struct SetupSystemInfo system;
struct OptionInfo options;
};
int step_yoffset;
int step_delay;
int start_step;
+ int start_step_opening;
+ int start_step_closing;
boolean draw_masked;
int sort_priority;
};
/* function definitions */
+#if 1
+void InitProgramInfo(char *, char *, char *, char *, char *, char *, char *,
+ char *, char *, char *, char *, int);
+#else
void InitProgramInfo(char *, char *, char *, char *, char *, char *, char *,
char *, char *, char *, char *, char *, int);
+#endif
+
+void SetWindowTitle();
+void InitWindowTitleFunction(char *(*window_title_function)(void));
void InitExitMessageFunction(void (*exit_message_function)(char *, va_list));
void InitExitFunction(void (*exit_function)(int));
void InitPlatformDependentStuff(void);