Input: load keyboard and mouse bindings per title #1824
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!1824
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@gefydev on GitHub · 2026-11-24 21:23 UTC · original
gefydev:input-profiles→main· +361 −37 · 4 files · 1 commits · draftMake 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
@DavidM1911 on GitHub · 2026-11-25 00:39 UTC · original
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!
@raylitebull on GitHub · 2026-11-25 00:55 UTC · original
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.@gefydev on GitHub · 2026-11-25 01:13 UTC · original
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?
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.