X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Flibgame%2Fsystem.h;h=90e8bca7af8f4d39dff18f6ab32a2d26bd6e5b39;hp=b9c74003365e64ead0319b70879c65caeabc8e4c;hb=e863b9777df452d4d666e63b4dca8ae957cddd6b;hpb=d0ed7ea44ffbe401039e3a8b9f9785304ab0a1cf diff --git a/src/libgame/system.h b/src/libgame/system.h index b9c74003..90e8bca7 100644 --- a/src/libgame/system.h +++ b/src/libgame/system.h @@ -67,6 +67,16 @@ #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 @@ -868,6 +878,13 @@ struct SetupKeyboardInfo Key snap, drop; }; +struct SetupTouchInfo +{ + char *control_type; + int move_distance; + int drop_distance; +}; + struct SetupInputInfo { boolean use_joystick; @@ -999,6 +1016,7 @@ struct SetupInfo struct SetupEditorCascadeInfo editor_cascade; struct SetupShortcutInfo shortcut; struct SetupInputInfo input[MAX_PLAYERS]; + struct SetupTouchInfo touch; struct SetupSystemInfo system; struct OptionInfo options; };