This program monitors an attached joystick, and displays various parameters, as well as logging to a file.
It has been used in various research by Pamela Sadler at Wilfrid Laurier University and others. See her webpage for some details.
Original source came from the MS DirectX samples: Source: DXSDK\Samples\C++\DirectInput\Joystick