From efb3465921d16adcc20621efec70c0ad2a05c7fa Mon Sep 17 00:00:00 2001 From: drfrag Date: Sat, 7 Dec 2019 22:23:02 +0100 Subject: [PATCH] - Add option to reset controls to defaults. --- src/menu/menu.cpp | 4 ++++ wadsrc/static/menudef.txt | 2 ++ 2 files changed, 6 insertions(+) diff --git a/src/menu/menu.cpp b/src/menu/menu.cpp index e9a2e3abd..1097ae6f7 100644 --- a/src/menu/menu.cpp +++ b/src/menu/menu.cpp @@ -1102,6 +1102,10 @@ CCMD(reset2saved) R_SetViewSize (screenblocks); } +CCMD(resetb2defaults) +{ + C_SetDefaultBindings (); +} // This really should be in the script but we can't do scripted CCMDs yet. CCMD(undocolorpic) diff --git a/wadsrc/static/menudef.txt b/wadsrc/static/menudef.txt index aa1ee50b9..6b47699e2 100644 --- a/wadsrc/static/menudef.txt +++ b/wadsrc/static/menudef.txt @@ -489,6 +489,8 @@ OptionMenu "CustomizeControls" protected Submenu "$CNTRLMNU_OTHER" , "OtherControlsMenu" Submenu "$CNTRLMNU_POPUPS" , "StrifeControlsMenu" Submenu "$MAPCNTRLMNU_CONTROLS" , "MapControlsMenu" + StaticText " " + SafeCommand "$OPTMNU_DEFAULTS", "resetb2defaults" } OptionMenu "ActionControlsMenu" protected