mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-08-02 14:50:41 -07:00
e4b08064b7
## Link to GitHub Issue or related Pull Request, if one exists Fixes #563 ## Description of change When buttons are presented as NotRange and instead an array of single buttons, we are calling `HidP_GetUsages` expecting at most one result back, but in reality we need to expect all possible buttons on that usage page since `HidP_GetUsages` returns all buttons in the usage page + link collection which would be the entire array of buttons - see documentation for `HidP_GetUsages` on MSDN. ## Testing Tested with my own controller modifying USB descriptors... more controller testing is needed.