via http://www.aep-emu.de/
With JoyToKey it is possible to map keypresses and mouse movements to a gamepad.

Quote:
Version 5.1.0 includes the following improvements:

Mouse cursor emulation is now much smoother with analog sticks, by using a continuous acceleration without a threshold.
In case analog stick input has been wrong, axis mapping can be manually specified. (Menu: "Preferences" -> "Configure joysticks")
In case you have multiple joysticks and want to always use one of them as "Joystick 2" (or any other joystick number), you can define a priority/preferred number for each device. (Menu: "Preferences" -> "Configure joysticks")
Miscellaneous bug fixes.