diff --git a/src/cvars.cpp b/src/cvars.cpp index b7216fe41..ab121527b 100644 --- a/src/cvars.cpp +++ b/src/cvars.cpp @@ -359,6 +359,7 @@ consvar_t cv_drawdist_precip = Player("drawdist_precip", "1024").values({ {0, "None"}, }); +consvar_t cv_drawinput = Player("drawinput", "No").yes_no(); consvar_t cv_ffloorclip = Player("ffloorclip", "On").on_off(); consvar_t cv_fpscap = Player("fpscap", "Match refresh rate").values({ @@ -889,7 +890,6 @@ consvar_t cv_debugrender_spriteclip = PlayerCheat("debugrender_spriteclip", "Off consvar_t cv_debugrender_visplanes = PlayerCheat("debugrender_visplanes", "Off").on_off().description("Highlight the number of visplanes"); consvar_t cv_devmode_screen = PlayerCheat("devmode_screen", "1").min_max(1, 4).description("Choose which splitscreen player devmode applies to"); consvar_t cv_drawpickups = PlayerCheat("drawpickups", "Yes").yes_no().description("Hide rings, spheres, item capsules, prison capsules (visual only)"); -consvar_t cv_drawinput = PlayerCheat("drawinput", "No").yes_no().description("Draw turn inputs outside of Record Attack (turn solver debugging)"); void lua_profile_OnChange(void); consvar_t cv_lua_profile = PlayerCheat("lua_profile", "0").values(CV_Unsigned).onchange(lua_profile_OnChange).description("Show hook timings over an average of N tics"); diff --git a/src/menus/options-profiles-edit-accessibility.cpp b/src/menus/options-profiles-edit-accessibility.cpp index 8ace78f24..ca031279c 100644 --- a/src/menus/options-profiles-edit-accessibility.cpp +++ b/src/menus/options-profiles-edit-accessibility.cpp @@ -8,7 +8,7 @@ #include "../m_easing.h" #include "../p_local.h" // cv_tilting -extern "C" consvar_t cv_mindelay; +extern "C" consvar_t cv_mindelay, cv_drawinput; using srb2::Draw; @@ -119,6 +119,9 @@ menuitem_t OPTIONS_ProfileAccessibility[] = { {IT_STRING | IT_CVAR, "Screenshake", "Adjust shake intensity from hazards and offroad.", NULL, {.cvar = &cv_screenshake}, 0, 0}, + + {IT_STRING | IT_CVAR, "Input Display", "Show virtual controller on the HUD.", + NULL, {.cvar = &cv_drawinput}, 0, 0}, }; menu_t OPTIONS_ProfileAccessibilityDef = {