| Summary: | [PATCH] Windows: Switching left/right mouse buttons doesn't work in raw input mode | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Cameron Gutman <cameron.gutman> |
| Component: | video | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | sezeroz |
| Version: | HG 2.0 | ||
| Hardware: | x86 | ||
| OS: | Windows 10 | ||
| Attachments: | Patch | ||
|
Description
Cameron Gutman
2020-08-26 04:23:41 UTC
Created attachment 4449 [details]
Patch
Bump. Looks like this patch still applies on Hg. It would be nice to get this upstream for 2.0.14 so I can stop carrying it in my local tree. Patch added, thanks! https://hg.libsdl.org/SDL/rev/1ce0cf1fea15 I assume you've checked the performance of GetSystemMetrics() so we can call this on every mouse event? The value of SM_SWAPBUTTON is stored in an array inside user32, so looking it up is pretty cheap. We also only call GetSystemMetrics(SM_SWAPBUTTON) when the mouse buttons change, so we don't end up calling it all that often anyway. |