Files
Vlad Yanhursky cc0f192311 feat(input): Win32 window records side-specific modifiers and mouse buttons
WM_KEYDOWN gives VK_SHIFT, VK_CONTROL and VK_MENU for both sides, so a
binding to "lshift", "rctrl" or "ralt" could be parsed but never held on
Windows. The window now also records the side's code, from the scan code
(Shift) or the extended-key flag (Ctrl, Alt), and records mouse buttons
as VK_LBUTTON..VK_XBUTTON2, capturing the mouse while one is down so its
release is seen outside the window.

wParam is recorded exactly as before, and none of the new codes is in
the default map, so the RECOMP_KEYBOARD pad does not change. The decoding
is in keyboard.c (xbox_InputWin32SideVk, xbox_InputWin32MouseVk), without
a window header, so tests/input_keyboard_map checks it on every host;
fb_present.c only calls it.

Not compiled with MSVC here: no Windows machine was available.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 19:57:56 -04:00
..