I have connected two different usb gamepad and through the hid object I am receiving the number-values from the controllers. The problem is that the left analogstick sends values wich correspond to the right analogstick (of the same gamepad), so what I make with the left stick influences the right (actual only in the x axis). This happens to both gamepads witch make me wonder if they are so built. When I press print in the hid object I get:
__________________________________________________
Device 7: 'DragonRise Inc. ' 'Generic USB Joystick ' version 263 @ location 0xfa240000
device type: joystick usage page: 0x0001 usage: 0x0004
vendorID: 0x0079 productID: 0x0006
__________________________________________________
Device 8: 'DragonRise Inc. ' 'Generic USB Joystick ' version 263 @ location 0xfa230000
device type: joystick usage page: 0x0001 usage: 0x0004
vendorID: 0x0079 productID: 0x0006
[hid] found 19 elements:
TYPE CODE # EVENT NAME
key btn_0 0 Button Input, Button #1
key btn_1 0 Button Input, Button #2
key btn_2 0 Button Input, Button #3
key btn_3 0 Button Input, Button #4
key btn_4 0 Button Input, Button #5
key btn_5 0 Button Input, Button #6
key btn_6 0 Button Input, Button #7
key btn_7 0 Button Input, Button #8
key btn_8 0 Button Input, Button #9
key btn_9 0 Button Input, Button #10
key btn_10 0 Button Input, Button #11
key btn_11 0 Button Input, Button #12
0xff00 0x0001 0 Button Input, Page: 0xff00, Usage: 0x1
abs abs_x 0 Miscellaneous Input, X-Axis
abs abs_y 0 Miscellaneous Input, Y-Axis
abs abs_z 0 Miscellaneous Input, Z-Axis
abs abs_z 1 Miscellaneous Input, Z-Axis
abs abs_rz 0 Miscellaneous Input, Z-Rotation
abs hatswitch 0 Miscellaneous Input, Hatswitch
As you can see that there are two Z-Axis, witch make me wonder. Is there a way to separate the values of the two analogsticks (of the same gamepad)?