~~I know this doesn’t fully answer your exact question but have you considered this instead~~
~~https://github.com/microsoftconnect/GameInput~~
~~> GameInput is a functional superset of all legacy input APIs—XInput, DirectInput, Raw Input, Human Interface Device (HID), and WinRT APIs~~
I think OP is already talking about this API