I found an old driver on the internet
(Bagoj's
) that didn't quite work and enhanced it a bit. It now supports 2 simultaneous gamepads and includes auto-calibration. When you plug in a gamepad, it will display a messagebox indicating if it's gamepad 1 or 2. Move either the X or Y axis from the minimum position to the maximum to calibrate and then you're in business. The calibration step must be done each time you plug in a gamepad. The following virtual keys are generated:
Gamepad 1
-------------
Buttons 1-9 = 1-9
Up = VK_UP
Down = VK_DOWN
Left = VK_LEFT
Right = VK_RIGHT
Gamepad 2
-------------
Buttons 1-9 = E-M
Up = 'A'
Down = 'B'
Left = 'C'
Right = 'D'
This may not recognize all gaming devices because some are "joysticks" and some are "gamepads". I will be looking into supporting more devices in the future. Please let me know how it works for you.
L.B.
Gamepad driver (CAB)Edited by bitbank 2010-05-25 3:41 PM