Preserve one-frame debug input pulses

Co-authored-by: douglasjv <vanderveerdouglas@gmail.com>
This commit is contained in:
Codex
2026-07-14 10:00:57 -07:00
committed by Matthew Stanley
parent d52bb24aa4
commit edc3fd4e30
2 changed files with 10 additions and 1 deletions
@@ -0,0 +1,8 @@
# One-frame debug input pulse
Source: [PSXRecomp PR #15](https://github.com/mstan/psxrecomp/pull/15),
commit [`f44f365eb91a30396f05f0f52529d4b01b026099`](https://github.com/douglasjv/psxrecomp-tweaks/commit/f44f365eb91a30396f05f0f52529d4b01b026099).
This branch isolates the fix that returns an armed input pulse before consuming
its final frame. Widescreen signed bounds and unrelated debug tooling from the
source commit are excluded.
+2 -1
View File
@@ -12916,11 +12916,12 @@ int debug_server_is_connected(void)
int debug_server_get_input_override(void)
{
int current = s_input_override;
if (s_input_override >= 0 && s_input_frames > 0) {
if (--s_input_frames == 0)
s_input_override = -1;
}
return s_input_override;
return current;
}
int debug_server_get_axis_override(unsigned char st[4])