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

Duplicate controller? #21

Closed Schusti91 closed 3 years ago

Schusti91 commented 4 years ago

Hi @dancol90,

I'm glad I found your tool, since my Controller simply won't work with x360ce.

image

Do you have any idea what could cause this? I see two controllers ingame. I can't really navigate through the menu, it seems to make commands randomly.

dancol90 commented 3 years ago

As the latest release note says, Windows 10 does not allow for exclusive mode on HID devices. This means that every application will see the original Xiaomi Gamepad device as long as the emulated Xbox one.

mi-360 will try anyway to obtain exclusive access to the gamepad (that will hide the device to other applications), but if it fails it will revert to the normal, shared access that will leave the device visible to all.

I've tried multiple solutions in the past, but all of them were kinda hack-ish and troublesome. It seems that there is no way to make it in a clean, safe way.