From: Holger Schemel Date: Wed, 15 Jun 2022 06:39:57 +0000 (+0200) Subject: added setup option for overlay touch buttons (not used yet) X-Git-Tag: 4.3.2.2~1 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=fba4d73f859e45839b0e32da0ad389e9145311a7;p=rocksndiamonds.git added setup option for overlay touch buttons (not used yet) --- diff --git a/src/files.c b/src/files.c index 5c8b149d..8889f810 100644 --- a/src/files.c +++ b/src/files.c @@ -9661,6 +9661,10 @@ static struct TokenInfo global_setup_tokens[] = TYPE_INTEGER, &setup.touch.grid_ysize[1], "touch.virtual_buttons.1.ysize" }, + { + TYPE_SWITCH, + &setup.touch.overlay_buttons, "touch.overlay_buttons" + }, }; static struct TokenInfo auto_setup_tokens[] = @@ -10401,6 +10405,8 @@ static void setSetupInfoToDefaults(struct SetupInfo *si) si->touch.grid_initialized = video.initialized; + si->touch.overlay_buttons = FALSE; + si->editor.el_boulderdash = TRUE; si->editor.el_emerald_mine = TRUE; si->editor.el_emerald_mine_club = TRUE; @@ -10543,6 +10549,7 @@ static void setSetupInfoToDefaults(struct SetupInfo *si) #if defined(PLATFORM_ANDROID) si->fullscreen = TRUE; + si->touch.overlay_buttons = TRUE; #endif setHideSetupEntry(&setup.debug.xsn_mode); diff --git a/src/libgame/system.h b/src/libgame/system.h index a3d94efd..481290ee 100644 --- a/src/libgame/system.h +++ b/src/libgame/system.h @@ -1309,6 +1309,8 @@ struct SetupTouchInfo boolean draw_pressed; boolean grid_initialized; + + boolean overlay_buttons; }; struct SetupInputInfo