mirror of
https://github.com/sp00nznet/xboxrecomp.git
synced 2026-12-05 10:03:01 +00:00
7cad1b4ad6
keyboard.c becomes the first adopter of input_map: xbox_key_map[] is turned into InputBindings (xbox_InputKeyboardBindings) and xbox_InputKeyboardState resolves a snapshot of the key table with xbox_InputMap_KeysResolve. The map, its README table and its exports are unchanged, and so is the pad: diagonals stay full deflection, analog keys 255, the packet number moves on every call. xbox_input now links xbox_input_map. tests/input_keyboard_map compares the result byte for byte with a frozen copy of v0.14.0's xbox_InputKeyboardState: every subset of the map's keys up to four, all keys, every code alone and a 200,000-step sweep. It also checks the map as binding text. tests/input_keyboard's test file is unchanged; its CMakeLists, like input_keyboard_sdl's, now builds input_map.c beside keyboard.c. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>