katyscode.wordpress.com
XInput Tutorial Part 2: Mapping gamepad buttons and analog movement to Windows keyboard events
In part 1 of this mini-series we looked at the basics of the XInput API and how to read the state of all the analog and digital buttons on a gamepad, then wrapped it up into a simple Gamepad class.…