upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/test/shadow_keep_test.cpp
diff options
context:
space:
mode:
authorOreoFR <29048345+OreoFR@users.noreply.github.com>2026-12-03 02:21:32 +0100
committerOreoFR <29048345+OreoFR@users.noreply.github.com>2026-12-03 02:21:32 +0100
commit94950d4a5751e0b6bfa4efdd12c4365dab990b32 (patch)
treeeac48ce5eac3a7a65ad7b19b1af5fa3db97e4998 /runtime/test/shadow_keep_test.cpp
parent1a163523db487f764f7a62b959cacabea201e35a (diff)
d3d12 gameinput: LEONIDA_KBM_BINDS, keyboard and mouse binds without a rebuild (D3D12-KBM-BINDS)
`LEONIDA_KBM_BINDS=scope:key=action;...` (scope foot, vehicle or both; key a letter, digit or name such as Space, LShift, Numpad8, F5, MouseLeft; action a pad input such as A, Square, RB, LT, DpadUp, LeftY+, or none) changes the GTA V layout's two tables. An entry replaces every default bind of its key in its scope; several keys may give one action. The tables are built once (LazyLock) from the consts plus the entries, and the stand-in pad, `outputs` and the hand-over rule (`changes`) all read the built tables, so a remapped key that ends up another input in a vehicle than on foot waits for a fresh press after a change of table. Entries that do not read, and the runtime's own keys (F1 settings menu, F3 numbers panel, F4 trainer menu, F8 ped dump, F9 frame capture, Left/Right Alt, Caps Lock), are skipped with one warning each naming the entry; nothing panics. Unset, the tables are the consts bind for bind (tested over all 256 keys); LEONIDA_KBM=classic does not read the variable. Tests: cargo test -p leonida-hle (257 passed, 2 ignored), clippy -p leonida-hle --all-targets -D warnings clean; a counter-test that keeps the default binds of a named key fails 3 of the new tests, one that runs the hand-over on the default tables fails the remapped hand-over test. docs/gameinput.md documents the syntax; d3d12/docs/switches.md regenerated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/test/shadow_keep_test.cpp')
0 files changed, 0 insertions, 0 deletions