Skip to content

Add (incomplete) ir:USER API based on ctru-rs implementation for Circle Pad Pro support #568

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

Open
wants to merge 17 commits into
base: master
Choose a base branch
from

Conversation

syelan34
Copy link

@syelan34 syelan34 commented Mar 31, 2025

Adds basic API similar to the ir:U and ir:RST APIs, with all commands documented on 3DBrew implemented. Implementation of some functions was based on that of ctru-rs.

I don't have a circle pad pro to test with so I'm unable to check if everything works correctly, but it should match any documentation that exists.

@syelan34
Copy link
Author

I'm not super satisfied with my implementation of the iruserGetPackets() function, since it allocates two separate buffers, so please suggest any alternatives which might match how other libctru functions might act.
The variable length encoding of packets, as well as the unknown number of packets makes it difficult to do any other way which is why I haven't so far.

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.

1 participant