Maschell / hid_to_vpad

Little tool to use a HID-Device as WiiU GamePad
GNU General Public License v3.0
150 stars 23 forks source link

Cannot use controllers that have separate positive and negative axes #25

Open nastys opened 7 years ago

nastys commented 7 years ago

I've been trying to create a configuration file for my Thrustmaster Dual Analog 4, but the sticks are not working properly. HID to VPAD currently supports axes with a min and max value, a neutral position, and a deadzone. This controller, however, uses separate positive and negative axes in the same byte. The neutral position is 0x00, the leftmost position is 0x80 and the rightmost position is 0x7F. The position immediately left to the centre is 0xFF and the one immediately right is 0x01, like this:

0x80...0xFF-(((0x00)))-0x01...0x7F

Axis R-Y is the only one that does not have this issue, as it has a minimum value of 0x00, a maximum value of 0xFF and a neutral value of 0x80, like this:

0x00...0x79-(((0x80)))-0x81...0xFF

shadownion commented 4 years ago

I’m trying to get my wired fight pad pro for switch to work on my wii u on xenoblade chronicles X it works but when I move diagonal my character walks when she should run