diff --git a/wadsrc/static/menudef.txt b/wadsrc/static/menudef.txt index 97f0ae140..39d85ca40 100644 --- a/wadsrc/static/menudef.txt +++ b/wadsrc/static/menudef.txt @@ -787,13 +787,30 @@ OptionMenu "MouseOptions" protected // //------------------------------------------------------------------------------------------- +OptionMenu "JoystickOptionsDefaults" protected +{ + Title "$JOYMNU_OPTIONS" + Option "$JOYMNU_ENABLE", "use_joystick", "YesNo" + Option "$JOYMNU_NOMENU", "m_blockcontrollers", "YesNo" + IfOption(Windows) + { + Option "$JOYMNU_DINPUT", "joy_dinput", "YesNo" + Option "$JOYMNU_XINPUT", "joy_xinput", "YesNo" + Option "$JOYMNU_PS2", "joy_ps2raw", "YesNo" + } + StaticText "" + StaticTextSwitchable "$JOYMNU_NOCON", "$JOYMNU_CONFIG", "ConfigureMessage" + StaticTextSwitchable " ", "$JOYMNU_DISABLED1", "ConnectMessage1" + StaticTextSwitchable " ", "$JOYMNU_DISABLED2", "ConnectMessage2" + + // The rest will be filled in by joystick code if devices get connected or disconnected +} + OptionMenu "JoystickOptions" protected { Title "$JOYMNU_OPTIONS" - // This will be filled in by joystick code if devices get connected or disconnected } - OptionValue "JoyAxisMapNames" { -1, "$OPTVAL_NONE"