Xinput Library | Learn C++
The deprecated but still maintained XInput library was created quite some time ago and is provided by Microsoft. The gamepad and joystick are the most widely used game controllers. Using the venerable XInput API is one of the simplest ways to use such gaming controller hardware on Windows.