x
This website is using cookies. We use cookies to ensure that we give you the best experience on our website. More info. That's Fine
HPC:Factor Logo 
 
Latest Forum Activity

USB Gamepad HID driver

bitbank Page Icon Posted 2010-05-25 3:40 PM
#
Avatar image of bitbank
H/PC Newbie

Posts:
21
Location:
United States
Status:
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
 Top of the page
TFGBD Page Icon Posted 2010-10-21 11:21 PM
#
Avatar image of TFGBD
H/PC Philosopher

Posts:
310
Location:
Eastern USA
Status:
Aesome. Do you think it will work over Bluetooth as well?
 Top of the page
C:Amie Page Icon Posted 2010-10-22 10:10 AM
#
Avatar image of C:Amie
Administrator
H/PC Oracle

Posts:
17,983
Location:
United Kingdom
Status:
Pretty cool, what are the system requirements, what games have you tested with?
 Top of the page
Jump to forum:
Seconds to generate: 0.125 - Cached queries : 60 - Executed queries : 9