irungentoo / Xiaomi_gamepad

It's a nice gamepad.
318 stars 70 forks source link

Both triggers are setted into the same axis #15

Open hik4ru opened 8 years ago

hik4ru commented 8 years ago

Hi,

I have a problem, into the Xbox gamepad propierties I can see how both triggers are setted into the same axis, making that if I press for example both triggers, it turns back to position zero. Could it be resolved with an update?

Thank you.

irungentoo commented 8 years ago

Pretty sure that's normal, try them in a game and you'll see them working perfectly.

hik4ru commented 8 years ago

No, it doesn't work perfectly, it keeps showing that it's the same axis in the game

hik4ru commented 8 years ago

Hi again,

I've seen that in Xinput-compatible games like Dolphin Emulator it seems to work ok, but in DirectInput games like old ones (e.g.: Grand Prix 4) it just recognize both triggers as one axis. Could this be fixed in DirectInput?

Ryochan7 commented 8 years ago

That is working as designed. The DirectInput counterpart for an XInput gamepad has both triggers mapped to a single axis. I don't know if ScpVBus would allow using one of the alternative mappings instead of using the standard for XINPUT_DEVSUBTYPE_GAMEPAD.

https://msdn.microsoft.com/en-us/library/windows/desktop/hh405052(v=vs.85).aspx

hik4ru commented 8 years ago

My 360 and One pads work with 2 different axis; I don't know how work into the API (I'm only a beginner Java dev) but I know how it shows and works in the games. Tomorrow I'll upload a few screenshots for you to look at what I mean

hik4ru commented 8 years ago

http://imgur.com/a/WPyhZ

Here you have. As you can see on the first pic, the Xbox One controller has its triggers mapped as axis Z and IRZ, but Xiaomi's one is mapped only as Z, turning to position zero if both triggers are pressed

irungentoo commented 8 years ago

Just to be sure did you install the scp bus thing from my zip or from somewhere else?

hik4ru commented 8 years ago

Yes, I installed it. Before the scp from your zip I also tried with a DS3/4 app which internet said it works (I installed both so, I don't know it this could be a problem), but well... As I said, it's weird that my original pads works ok and this have that problem where it should be working exactly the same.

hik4ru commented 8 years ago

Hi?