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

Create scan_for_joycons() #14

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

Conversation

Jayman2000
Copy link
Contributor

The goal of this PR is to make it easier to create new JoyCons.

Here’s some things that I was unsure about:

  • I put what I created into a new scan.rs file. I’m not very familiar with how this project is organized, so I don’t really know if that’s a good place to put it.
  • I wanted DetectedJoyConInfo::connect to return a Result, but I had two error types instead of one. I created ConnectionError to solve this problem, but I’m not sure if that’s the best solution.

crates/joycon/src/hid.rs Outdated Show resolved Hide resolved
The goal of this change is to take boilerplate code (code that has to
appear in every program that uses the joycon crate) and move it into the
library itself.
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