int y = (is_touch_button ? pos->y : GDI_ACTIVE_POS(pos->y));
int id = i;
+ // do not use touch buttons if touch controls are disabled
+ if (is_touch_button &&
+ strEqual(setup.touch.control_type, TOUCH_CONTROL_OFF))
+ continue;
+
if (gfx->bitmap == NULL)
{
game_gadget[id] = NULL;
int type = GD_TYPE_NORMAL_BUTTON;
boolean checked = FALSE;
+ // do not use touch buttons if touch controls are disabled
+ if (is_touch_button &&
+ strEqual(setup.touch.control_type, TOUCH_CONTROL_OFF))
+ continue;
+
event_mask = menubutton_info[i].event_mask;
x = (is_touch_button ? pos->x : mSX + GDI_ACTIVE_POS(pos->x));
int y = pos->y;
int id = i;
+ // do not use touch buttons if touch controls are disabled
+ if (is_touch_button &&
+ strEqual(setup.touch.control_type, TOUCH_CONTROL_OFF))
+ continue;
+
if (global.use_envelope_request && !is_touch_button)
{
setRequestPosition(&base_x, &base_y, TRUE);