Skip to content

Commit

Permalink
Merge pull request #56 from KaiseiYokoyama/dev/0.5.1
Browse files Browse the repository at this point in the history
Dev/0.5.1
  • Loading branch information
KaiseiYokoyama authored May 29, 2020
2 parents 4097d50 + 52b4596 commit 3bafa60
Show file tree
Hide file tree
Showing 4 changed files with 551 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
[package]
name = "joycon-rs"
version = "0.5.0-alpha"
version = "0.5.1"
authors = ["Kaisei Yokoyama <[email protected]>"]
repository = "https://github.com/KaiseiYokoyama/joycon-rs"
edition = "2018"
description = " a framework for dealing with Nintendo Switch Joy-Con on Rust easily and efficiently"
readme = "README.md"
categories = ["game-development", "hardware-support"]
keywords = ["nintendo_switch", "joycon", "gamedev", "hid", "bluetooth"]
license = "Apache-2.0"
exclude = ["/images/*"]
Expand Down
1 change: 1 addition & 0 deletions examples/scan_for_joycons.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ fn main() -> JoyConResult<()> {
devices.iter()
.try_for_each::<_, JoyConResult<()>>(|d| {
if let Ok(device) = d.lock() {
dbg!(&device);
let device: &HidDevice = device.deref().try_into()?;
println!("{:?}", device.get_product_string()?);
}
Expand Down
Loading

0 comments on commit 3bafa60

Please sign in to comment.