Skip to content

Create scan_for_joycons()#14

Open
Jayman2000 wants to merge 2 commits intoYamakaky:masterfrom
Jayman2000:scan-for-joy-cons
Open

Create scan_for_joycons()#14
Jayman2000 wants to merge 2 commits intoYamakaky:masterfrom
Jayman2000:scan-for-joy-cons

Conversation

@Jayman2000
Copy link
Copy Markdown
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.

Comment thread crates/joycon/src/hid.rs Outdated
Comment thread crates/joycon/src/scan.rs
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