Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support HID wiimotes (Mayflash Dolphinbar) #44

Open
UnasZole opened this issue Jun 8, 2022 · 0 comments
Open

Support HID wiimotes (Mayflash Dolphinbar) #44

UnasZole opened this issue Jun 8, 2022 · 0 comments

Comments

@UnasZole
Copy link

UnasZole commented Jun 8, 2022

Hi,

I know it's quite unlikely such a development will happen given the low activity on the project, but here's a suggestion : allow detecting and using Wiimotes through the HID API.

One of the most popular and simplest solution to handle Wiimotes in the Dolphin emulator is by using the Mayflash Dolphinbar.
The Dolphinbar handles the bluetooth connection and sync with the wiimotes, exposing them as generic USB devices that can be accessed through the HID API.
Thus, the wiimotes appear as USB devices with vendor ID 057e, and the product ID 306 (normal wiimote) or 330 (TR wiimote).
Dolphin then has fairly simple code to use these "USB wiimotes" : https://github.com/dolphin-emu/dolphin/blob/master/Source/Core/Core/HW/WiimoteReal/IOhidapi.cpp
Outside of the simplicity and stability, it has practical uses as well : because the Wiimotes are connected via a USB device, they can be shared over the network (via virtualhere or similar solutions), and thus work fine for playing via Moonlight or other things.

Unfortunately, CWiiD currently ignores these completely, since it only searches via actual bluetooth.

It would be pretty neat to adapt Dolphin's code into this project, to be able to use these Wiimotes in the OS just as well as in the emulator, without the need to add another bluetooth adapter and switch the sync from an adapter to the other.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant