Files
RetroArch/settings/settings_def_input_backtouch.h
libretroadmin 0410b4f80b settings: mark HELP-bearing rows with _H def variants
Six migrated settings reserve a fourth HELP enum member via
MENU_LBL_H rather than the MENU_LABEL triple, a distinction the def
grammar could not express and the coming enum-region consolidation
must reproduce exactly. Their rows gain _H variants - S_UINT_H,
S_BOOL_H and the S_BOOL_NS_H combination - and each def file
carrying them opens with object-like aliases to the base macros
under ifndef SETTINGS_DEF_ENUM_PASS, so every existing consumer
region behaves identically with no changes; only the future enum
pass will observe the marker. h2json, json2h's template expansion,
the migrator's extraction and emission (which now probes the enum
form when writing new rows) and the name-keyed harness (which now
expands enum-region includes, emitting the HELP name for _H rows)
all learn the suffix.

Validation: msg_hash_us.json exactly equal against a scratch-tree
regeneration of the parent revision; name-keyed lookup dump
byte-identical; settings dump byte-identical against a same-tree
stash baseline; pedantic strict-C89 lanes clean including headless.
2026-07-03 08:00:45 +02:00

39 lines
1.5 KiB
C

/* Single-source definitions: back touch group.
* Grammar identical to settings_def_video_sync.h plus S_FLOAT and
* the _NS no-sublabel variants; the descriptor argument span
* matches SDESC_<kind>_ROW; row order is menu display order;
* h2json.py parses these rows for the Crowdin source upload. */
/* Rows marked _H reserve a MENU_ENUM_LABEL_HELP_ enum member;
* outside the enum pass they behave exactly like the base row. */
#ifndef SETTINGS_DEF_ENUM_PASS
#ifndef S_BOOL_NS_H
#define S_BOOL_NS_H S_BOOL_NS
#endif
#endif
/* Descriptor and configuration rows are #ifdef VITA; the string
* tables always carry this row via the strings pass. */
#if defined(VITA) || defined(SETTINGS_DEF_STRINGS_PASS)
/* config key "input_backtouch_enable" differs from the label string; the
* configuration.c row stays literal for this setting. */
#ifndef SETTINGS_DEF_CONFIG_PASS
S_BOOL_NS(input_backtouch_enable, INPUT_TOUCH_ENABLE,
"input_touch_enable",
DEFAULT_INPUT_BACKTOUCH_ENABLE, SD_FLAG_NONE, 0, 0,
"Touch")
#endif
#endif
/* Descriptor and configuration rows are #ifdef VITA; the string
* tables always carry this row via the strings pass. */
#if defined(VITA) || defined(SETTINGS_DEF_STRINGS_PASS)
/* config key "input_backtouch_toggle" differs from the label string; the
* configuration.c row stays literal for this setting. */
#ifndef SETTINGS_DEF_CONFIG_PASS
S_BOOL_NS_H(input_backtouch_toggle, INPUT_PREFER_FRONT_TOUCH,
"input_prefer_front_touch",
DEFAULT_INPUT_BACKTOUCH_TOGGLE, SD_FLAG_NONE, 0, 0,
"Prefer Front Touch")
#endif
#endif