Alexander Repenning has code for using gamepads, joysticks, 3D mice, and other game-type input devices from MCL: gameDevices.zip