dsda: "always run" option

upstream uses a hotkey toggle instead but vanilla didn't have it. even "always run" itself was just a vanilla bug. I don't want to have a special on-the-fly input for autorun toggle, hopefully user either wants to always run + occasional mouse movement, or only run using the proper button
This commit is contained in:
feos 2025-02-25 19:05:33 +03:00
parent 0311bb5d39
commit 5539557b27
2 changed files with 7 additions and 6 deletions

View File

@ -48,7 +48,8 @@ namespace BizHawk.Emulation.Cores.Computers.Doom
{
if ((playersPresent & (1 << i)) is not 0)
{
int speedIndex = Convert.ToInt32(controller.IsPressed($"P{i+1} Run")); // todo: xor depending on autorun
int speedIndex = Convert.ToInt32(controller.IsPressed($"P{i+1} Run")
|| _syncSettings.AlwaysRun);
int turnSpeed = 0;
// lower speed for tapping turn buttons

View File

@ -258,12 +258,12 @@ namespace BizHawk.Emulation.Cores.Computers.Doom
[Description("Sets strict mode restrictions, preventing TAS-only inputs.")]
[DefaultValue(true)]
public bool StrictMode { get; set; }
/*
[DisplayName("Auto Run")]
[Description("")]
[DisplayName("Always Run")]
[Description("Toggles whether the player is permanently in the running state, without the slower walking speed available. This emulates a bug in vanilla Doom: setting the joystick run button to an invalid high number causes the game to always have it enabled.")]
[DefaultValue(true)]
public bool AutoRun { get; set; }
*/
public bool AlwaysRun { get; set; }
[DisplayName("Turning Resolution")]
[Description("\"Shorttics\" refers to decreased turning resolution used for demos. \"Longtics\" refers to the regular turning resolution outside of a demo-recording environment.")]
[DefaultValue(TurningResolution.Longtics)]