Skip to content

libusb backend#68

Merged
mardy merged 7 commits intoxerpi:mainfrom
mardy:libusb
May 26, 2025
Merged

libusb backend#68
mardy merged 7 commits intoxerpi:mainfrom
mardy:libusb

Conversation

@mardy
Copy link
Copy Markdown
Collaborator

@mardy mardy commented May 25, 2025

Hi!
This is built on top of #67, so it must be merged after it.

Add a platform backend based on libusb, and a little test program for it. With it, I could verify that the Dragonrise controller works on my Linux desktop via EGC.

The last commit fixes a small (but important!) issue on the dragonrise driver, which for some reason does not manifests itself on a Wii.

@mardy mardy requested a review from xerpi May 25, 2025 19:03
mardy added 7 commits May 25, 2025 22:12
Heavily refactor the library: all the wiimote-specific parts are now
removed (and moved to the fakemote source directory) and the library now
delivers input events modelled after the SDL3 GameController
abstraction.
These files are no longer common, they are just for the fakemote module.
This will make it easier to disable building fakemote on other
platforms.
Add `-DBUILD_EXAMPLE` to cmake's command line to build it.
For some reason it is working on the Wii even if the endpoint is wrong,
but on Linux + libusb we need to specify the correct one, or the ioctl
will return ENOENT.
Copy link
Copy Markdown
Owner

@xerpi xerpi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome!
Having a PC tool to test it out is also a very nice idea, thanks!

@mardy mardy merged commit 3070ce4 into xerpi:main May 26, 2025
1 check passed
@mardy mardy deleted the libusb branch May 26, 2025 14:33
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

Successfully merging this pull request may close these issues.

2 participants