Input: load keyboard and mouse bindings per title #1814
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1824"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ivall/xcl. Originally posted by gefydev on 2026-11-24T21:23:54Z.
Make the keyboard and mouse mapping configurable per title. Existing configurations keep the built-in mapping, and players can override individual bindings in
xcl.toml.What is in it
config.rsandhle/kbm.rsload a profile over the built-in bindings, including clearing keys and changing wheel outputs.hle/gameinput.rsuses the profile for navigation keys under the existing focus rule. The README documents overrides.Tested
cargo build --offline --locked --workspacepassed.cargo test --offline --locked --workspace --no-fail-fast -- --test-threads=4 --nocapture: 865 passed, 0 failed, 42 ignored. Reported skips are included in the passing count.git diff --checkand a patch apply check against the baseline passed.Regression run
Not tested
AI use
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T00:39:39Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~23 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)Thanks!
Imported from ivall/xcl. Originally posted by raylitebull on 2026-11-25T00:55:51Z.
Code review on
b800502:InputProfileincrates/xcl/src/hle/kbm.rscleanly supports per-title[input_profile]overrides inxcl.toml(withdeny_unknown_fields,skip_serializing_if = "is_default", physical scancode/VK resolution, and configurable wheel outputs), whilegameinput.rskeepsnavigation_buttonsgated behindsuper::kbm::enabled().What is still needed before merge: Independent AMD-machine test verification (plus an optional check of a non-default
[input_profile]override inxcl.toml) to satisfy dual-vendor coverage.Imported from ivall/xcl. Originally posted by gefydev on 2026-11-25T01:13:54Z.
A human update on this:
As we all know, modern titles have different context that also change what the keybinds do, example: R2 on foot It would hit, @@but in a vehicle, it would accelerate (no particular game, js made that up).
The only way to correctly map a KEYBOARD key to the right action ON GAME depending of the context can only be done by adding an XCL layer inside the game's memory, to expose it's context and change the keys based on that.
This is extremely difficult, so i'm patiently investigating it. I don't know if this PR is useful given that, ¿what do you think?
Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-27T05:51:50Z.
Full-suite run, since this PR has no test report yet. Tested exact head
b8005022(on its base6c89285).Tested
cargo build --workspace, thenXCL_REQUIRE_GPU=mesh cargo test --workspace --no-fail-fast -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form --skip gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f64_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::const_and_null_mask_operands_agree_with_hlsl_on_the_gpu --skip gpu::recomp::lower_dxil::tests::mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu --skip gpu::dxil::fuzz_tests: 864 passed, 0 failed, 42 ignored. SKIPPED (no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware.default_profile_preserves_keyboard_and_mouse_bindings,profile_inherits_defaults_and_can_replace_or_clear_bindings.XCL_ADAPTER=radeon),cargo test --workspace --no-fail-fast -- --test-threads=4 --skip gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1: 865 passed, 0 failed, 42 ignored. SKIPPED:heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows).--skipleaves out tests that fail on mainc2ee10e4too, not because of this PR. On NVIDIA:heap_window_out_of_memory_falls_back_to_the_switch_form(#1651), the fourgpu::recomp::lower_dxil::tests::*_programs_on_the_gputests,const_and_null_mask_operands_agree_with_hlsl_on_the_gpuandmask_ff0_and_flbit_agree_with_hlsl_on_the_gpu(follow-up on #1651) fail becauserunner::skip_testturns their skips into failures underXCL_REQUIRE_GPU=mesh, andgpu::dxil::fuzz_testsseeds 70, 545, 1019 and 1507 failCreateComputePipelineStatewithE_OUTOFMEMORYon this card (drivers 616.64 and 621.40). On AMD:fuzz_validate_and_gpu_1fails on seed 540 (res[833]0x7 vs CPU 0x6). The AMD run does not setXCL_REQUIRE_GPU.Not tested
AI use