-
Notifications
You must be signed in to change notification settings - Fork 6
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
I'm getting NotFound error when trying to open a HID device. #6
Comments
What's the operating system? |
Win 8.1 |
I am hitting the same error on GNU/Linux Ubuntu 17.04 with a DS4 connected via USB. VID and PID:
As you can see here I can read data from the device via
extern crate hid;
fn main() {
let mgr = hid::init().unwrap();
let vid = 0x054c;
let pid = 0x05c4;
for ds4 in mgr.find(Some(vid), Some(pid)) {
let mut ds4 = match ds4.open() {
Ok(v) => v,
Err(e) => {
eprintln!("ERROR: {}", e); // always prints: ERROR: Device not found.
return;
}
};
}
} |
I obviously cannot speak for @Boscop but my issue was the lack of proper |
@phrohdoh Can you explain what changes you've made to your |
Sorry, I don't even have that machine anymore so I do not recall at this point. |
I'm trying to open my keyboard device (to get keypress events for the additional keys that it has), but I always get
Err(NotFound)
when trying toopen()
it, why?According to this reponse, it should work. How can the device be "NotFound" when it clearly exists?
I have to get this working, I'd really appreciate any help on this :)
The text was updated successfully, but these errors were encountered: