diff options
Diffstat (limited to 'setup/joystick.c')
-rw-r--r-- | setup/joystick.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/setup/joystick.c b/setup/joystick.c index 435a864c..ce6a81ec 100644 --- a/setup/joystick.c +++ b/setup/joystick.c @@ -98,14 +98,24 @@ void ConfigJoystick(void) TXT_AddWidgets(button_table, TXT_NewLabel("Fire"), TXT_NewJoystickInput(&joybfire), - TXT_NewLabel("Speed"), - TXT_NewJoystickInput(&joybspeed), TXT_NewLabel("Use"), TXT_NewJoystickInput(&joybuse), TXT_NewLabel("Strafe"), TXT_NewJoystickInput(&joybstrafe), NULL); + // High values of joybspeed are used to activate the "always run mode" + // trick in Vanilla Doom. If this has been enabled, not only is the + // joybspeed value meaningless, but the control itself is useless. + + if (joybspeed < 20) + { + TXT_AddWidgets(button_table, + TXT_NewLabel("Speed"), + TXT_NewJoystickInput(&joybspeed), + NULL); + } + SetJoystickButtonLabel(); } |