-
Notifications
You must be signed in to change notification settings - Fork 542
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
Cemu: discuss cemuhook integration #8410
base: master
Are you sure you want to change the base?
Cemu: discuss cemuhook integration #8410
Conversation
For my part, if there is a way to add gyroscope support and some other cool feature for cemu, i'm very interested :) |
I'm running Cemu with motion (gyroscope) support, which doesn't seem to work out of the box with batocera 36. I'd prefer motion support over SDL API, but didn't get it to work. Thus I added support for DSU API (=cemuhook). Maybe the latest Cemu release (2.0-29 currently) has working SDL motion, then we only need to update Cemu. This would be best. Otherwise we can integrate my solution, consisting of 1.) the controller generator in this PR and 2.) one or more cemuhook servers. I successfully tested the server joycond-cemuhook for Nintendo controllers (e.g. Switch Pro) and ds4drv for Sony controllers (e.g. DS4). My repo batocera-extra has everything required for a proof-of-concept. Feel free to have a look, to test and to ask. Ideas on how the integration into batocera could look like are welcome. |
Ok thanks, for my part i will can beta test with DS4 if there is an Batocera implementation. |
hey @git-developer yes I'm happy to move in this direction provided cemu doesn't have any short term plans to implement a SDL method. I'm busy this week & away this weekend but let's discuss on Discord, just reach out to me there. |
@git-developer where are the rest of the elements to make this work? What's required in terms of other packages etc? |
Installation / Start / DependenciesIn my POC, servers are installed and started on boot via custom.sh, not per emulator run. batocera-extra currently comes with 3 different servers:
The required dependencies for a server are in the server install script (just have a look in each server directory). They are currently downloaded from the Arch repo. Motion via SDL without cemuhookValerie, maintainer of linuxmotehook2, told me that
Yuzu has motion support via SDL because it overrides this default. Maybe Cemu and Citra can be adapted to do the same? Limit of 4 controllers per cemuhook server
Server lifecycle (starting / stop)
SummaryMy insights so far:
Open questions so far:
|
@git-developer i have bought a switch controller, i can look later this week. |
Close was unintended. |
b4263b6
to
62a6436
Compare
This PR is currently used as medium to discuss an idea that needs to be harmonized before Draft status is removed.
@dmanlfc: it looks like you are the one who implemented the controller generator for cemu 2.0. First of all, thanks for that! I want to let you know that I refactored the controller generator to allow DSU (cemuhook) in addition to SDL as controller API. I'd like to discuss if there's interest to integrate my changes into batocera. If you're interested in this topic, your feedback is welcome.