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

on raspberry pi works only with HID path #1

Open
bestander opened this issue Dec 12, 2016 · 2 comments
Open

on raspberry pi works only with HID path #1

bestander opened this issue Dec 12, 2016 · 2 comments

Comments

@bestander
Copy link

Thanks for the library!

I am testing it on a raspberry pi and connecting it via vid and pid did not work.
But using a HID path worked

    device = new HID.HID('0001:0009:01');

The path comes from HID.devices()

[ { vendorId: 10462,                 
    productId: 4418,                 
    path: '0001:0009:00',            
    manufacturer: 'Valve Software',  
    product: 'Steam Controller',     
    release: 1,                      
    interface: 0 },                  
  { vendorId: 10462,                 
    productId: 4418,                 
    path: '0001:0009:01',            
    manufacturer: 'Valve Software',  
    product: 'Steam Controller',     
    release: 1,                      
    interface: 1 },                  
  { vendorId: 10462,                 
    productId: 4418,                 
    path: '0001:0009:02',            
    manufacturer: 'Valve Software',  
    product: 'Steam Controller',     
    release: 1,                      
    interface: 2 },                  
  { vendorId: 10462,                 
    productId: 4418,                 
    path: '0001:0009:03',            
    manufacturer: 'Valve Software',  
    product: 'Steam Controller',     
    release: 1,                      
    interface: 3 },                  
  { vendorId: 10462,                 
    productId: 4418,                 
    path: '0001:0009:04',            
    manufacturer: 'Valve Software',  
    product: 'Steam Controller',     
    release: 1,                      
    interface: 4 } ]                 

It may be an issue of node-hid but to work around this could node-steam-controller allow overriding what is passed to HID.HID()?

@virgilvox
Copy link
Owner

Sorry hadn't checked up on this repo in awhile!

The best solution might be to have the code find the path itself. But I can add in overrides as well. Feel free to PR if you have good changes.

@bestander
Copy link
Author

Will do, thanks!

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

No branches or pull requests

2 participants