Repository navigation
GameInput: XCL_PRESS_HOLD holds scripted presses longer - #609
pablogonz12 wants to merge 1 commit into
Conversation
XCL_PRESS_AT / XCL_PRESS_A_AT hold each button for 200 ms. A title that draws a frame every few seconds (a retail title under Wine here: about one frame in 4 s at the start) reads its pad as seldom and misses such a press. XCL_PRESS_HOLD=s holds each press for s seconds instead; the default stays 200 ms.
|
Tested on an RTX 5080, release build: pass, 686 passed, 0 failed.
Not tested
AI use: Claude Code (Claude Opus 5.5, Claude Fable 5.2) |
|
Mac/Wine verification of this head as filed (a second host for the counts, not a review of the design). Tested
What this host can and cannot say about the motivation With #541 applied, this bench's port run presents ~24 fps and reads the pad continuously, and its own Related: I have just filed #893 ( Not tested
AI use
|
|
I tested
The fixture uses synthetic input only. AI use — OpenAI Codex (GPT-6) wrote and ran the test and drafted this report. |
Empirical test report (1178e8a)Hardware / environment
Commands and results
Observed behavior The diff adds one unit test, Not tested The full GPU workspace suite and game smoke runs were omitted. Runtime parsing of AI use Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against pr609-focused.log and published. |
XCL_PRESS_AT/XCL_PRESS_A_AThold each scripted button for 200 ms. A title that draws a frame every few seconds reads its pad about as seldom and misses such a press: a retail title under Wine here (about one frame in 4 s while its first screens load) never saw a scripted A; with the press held for 8 s it logsGameInput: gamepad buttons 0x4 pressed for the first time.XCL_PRESS_HOLD=sholds each press forsseconds; without it nothing changes.What is in it
crates/xcl/src/hle/gameinput.rs:XCL_PRESS_HOLD(seconds, > 0; default 0.2), read once; the test of a press moves intoheld(presses, t, hold); the module andparse_pressesdocs name the variable.a_press_is_held_for_its_hold_time.Tested
cargo test -p xcl --lib --release --target x86_64-pc-windows-gnu(llvm-mingw), test binary run under Wine with--test-threads=4:1178e8a): 640 passed, 6 failed, 21 ignored;main(cb868b2): 639 passed, 6 failed, 21 ignored – the same six on both (gpu_f64_roots,gpu_f64_math_random– Recompiler: v_rcp_f64 and v_rsq_f64 keep NaN, infinities and denormals #530;gpu_nonfused_mad_and_mac_prevent_fma_contraction– Recompiler: v_fma_f32 is not fused on AMD's RDNA1 driver (mad() left unfused) #472;xma2_source_voice_decodes_and_manages_lifetime;pe::tests::parses_own_test_binary_tls– TLS: xcl.exe built with MinGW and lld keeps its TLS directory #464;present::tests::window_position_modes), noSKIPPEDlines.XCL_PRESS_AT=60:A,90:A,…withXCL_PRESS_HOLD=8: the A press is logged at 61 s; with the default 200 ms no press was logged in a 240 s run with presses every 10 s.Regression run
Made with
scripts/linux/smoke.shfrom #257 under Wine (notsmoke.ps1), MSVC builds (cargo xwin), with a local copy of the script in which two lines are changed so that a run which does not reach its end still prints its block (set -euinstead ofset -euo pipefail; thedata:fallback as anif).main's run did not end within the script's grace time.Not tested
XCL_PRESS_HOLDwith the test title's e2e tests (they keep the default).AI use