Menus/Accessibility: add Input Display option

This commit is contained in:
James R 2024-03-02 00:18:33 -08:00
parent 1f3b5dea0a
commit e44d1759dd
2 changed files with 5 additions and 2 deletions

View file

@ -359,6 +359,7 @@ consvar_t cv_drawdist_precip = Player("drawdist_precip", "1024").values({
{0, "None"}, {0, "None"},
}); });
consvar_t cv_drawinput = Player("drawinput", "No").yes_no();
consvar_t cv_ffloorclip = Player("ffloorclip", "On").on_off(); consvar_t cv_ffloorclip = Player("ffloorclip", "On").on_off();
consvar_t cv_fpscap = Player("fpscap", "Match refresh rate").values({ 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_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_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_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); 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"); 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");

View file

@ -8,7 +8,7 @@
#include "../m_easing.h" #include "../m_easing.h"
#include "../p_local.h" // cv_tilting #include "../p_local.h" // cv_tilting
extern "C" consvar_t cv_mindelay; extern "C" consvar_t cv_mindelay, cv_drawinput;
using srb2::Draw; using srb2::Draw;
@ -119,6 +119,9 @@ menuitem_t OPTIONS_ProfileAccessibility[] = {
{IT_STRING | IT_CVAR, "Screenshake", "Adjust shake intensity from hazards and offroad.", {IT_STRING | IT_CVAR, "Screenshake", "Adjust shake intensity from hazards and offroad.",
NULL, {.cvar = &cv_screenshake}, 0, 0}, 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 = { menu_t OPTIONS_ProfileAccessibilityDef = {