I’ve been trying to read data (x/y axis, pressed buttons, etc) from a usb joystick, and I’ve heard of DirectInput. Been searching for some long hours to find a decent example or walkthrough with little success. If anyone can share a simple tutorial, or guide me to the correct place, I’ll be in your debt. Thank you
edit: Trying to achieve this goal on Windows platform
There are a few DirectInput samples in DirectX SDK, source code and compiled binaries. Included is
Joysticksample. Older versions of SDK (look for “DirectX 9.0 SDK”, years around 2004-2005) had even more samples, up to a dozen!