From 96950b6b4e64a7baaae22d5f313b33b239314ce3 Mon Sep 17 00:00:00 2001 From: bicarus <202771338+bicarus-dev@users.noreply.github.com> Date: Mon, 4 May 2026 22:50:11 -0700 Subject: [PATCH] rawinput: reimplement analog relative mode and delay (#674) ## Link to GitHub Issue or related Pull Request, if one exists #181 ## Description of change Implement analog relative mode and delay option using a new millisecond-based algorithm. ## Testing WIP --- src/spice2x/build/controller_presets.xml | 74 +++++++++--------- src/spice2x/cfg/analog.cpp | 76 ++++++++++++++++++- src/spice2x/cfg/analog.h | 40 ++++++++++ src/spice2x/cfg/api.cpp | 55 +++++++++----- src/spice2x/cfg/config.cpp | 22 ++++++ src/spice2x/cfg/controller_presets.cpp | 4 + src/spice2x/games/iidx/iidx.cpp | 37 +-------- src/spice2x/games/iidx/iidx.h | 2 - src/spice2x/launcher/launcher.cpp | 6 -- src/spice2x/launcher/options.cpp | 24 ------ src/spice2x/launcher/options.h | 2 - src/spice2x/overlay/windows/config.cpp | 36 ++++++++- .../overlay/windows/controller_presets.h | 4 + 13 files changed, 250 insertions(+), 132 deletions(-) diff --git a/src/spice2x/build/controller_presets.xml b/src/spice2x/build/controller_presets.xml index 9707e5a..3314b96 100644 --- a/src/spice2x/build/controller_presets.xml +++ b/src/spice2x/build/controller_presets.xml @@ -39,8 +39,8 @@