Hello all,
I have started working with JInput recently for a new 2D game project. From what I can gather from the api docs and this forum, I should be using the Component Identifier in theory to uniquely identify buttons on a device. Running the test code seems to report good values for all the keyboard buttons, but I’m having problems with gaming-specific devices like my joystick and gamepads. All the directional pads/analog sticks are detected correctly, but I receive UNKNOWN for all the button IDs. The button names seem reasonable however, with things such as “Button 0”, “Button 1”, etc. I’m assuming though that using the Component Name is not guarenteed to be consistent across all devices and all platforms, so mapping keys based on name is a bad idea. I was wondering if this is a known issue with JInput at this time or if I’m just missing something?
Other less important things I noticed include my gamepads being reported as joystick types and all the port type values are UNKNOWN as well.
My current setup:
Windows XP Service Pack 2
DirectX 9.0c
Microsoft Sidewinder Precision 2 Joystick
Gravis Gamepad Pro
Logitech Dual Action Gamepad
Thanks in advance,
Chris