dancol90 / mi-360

Xbox360 controller emulation for Xiaomi Gamepad, with vibration support
BSD 3-Clause "New" or "Revised" License
147 stars 22 forks source link

Sometimes the vibration does not stop. #10

Closed brainbreeze closed 4 years ago

brainbreeze commented 5 years ago

For example in Sekiro: Shadows Die Twice:

When they deal damage to me - the gamepad vibrates. At this time they kill me and I respawn. But the vibration continues ... Up to:

The same in all games.

Thank you very much :)

brainbreeze commented 5 years ago

Solution: use this controller emulator ...

dancol90 commented 5 years ago

Hi, this is related to the way the vibration commands are sent to the device. Being these commands blocking, I have to run them asynchronously to avoid losing user inputs, and there's where the problem lies.

I'll have a look!

T3rm1 commented 5 years ago

Problem is still there. Fifa 19 for example is unplayable with it. Vibration never stops. There is another project on Github with SCP Driver which is working fine.

zhangbo8418 commented 4 years ago

Solution: use https://github.com/grayver/mi-vigem

T3rm1 commented 4 years ago

Solution: use https://github.com/grayver/mi-vigem

Thank you for the link. Works perfect.

dancol90 commented 4 years ago

As stated in https://github.com/grayver/mi-vigem/issues/2, it seems like that this is a ViGEm related issue, as the same happens also in mi-vigem. Thanks @grayver for getting in touch with the ViGEm team and confirming the issue.

I kinda took inspiration (ehm...blatantly copied sounded wrong) and implemented a 3s timeout to vibration in mi-360. It will be available in the next release.

dancol90 commented 4 years ago

Just released v0.5.2 that fixes this issue: https://github.com/dancol90/mi-360/releases/tag/v0.5.2