Skip to content

mac: include usage and usage_page in path - #288

Closed
jpochyla wants to merge 1 commit into
signal11:masterfrom
jpochyla:mac_usage_page
Closed

jpochyla wants to merge 1 commit into
signal11:masterfrom
jpochyla:mac_usage_page

Conversation

@jpochyla

Copy link
Copy Markdown

It's possible to get multiple entries from hid_enumerate() with same path, but different usage page. hid_open_path then opens only the first device. This should fix that.

@signal11

Copy link
Copy Markdown
Owner

Looks good, thanks!

@mrpippy

mrpippy commented Sep 1, 2016

Copy link
Copy Markdown
Contributor

This pull request should also work, it uses IOKit paths to uniquely identify devices: #40

@signal11

signal11 commented Sep 1, 2016

Copy link
Copy Markdown
Owner

Hi Brenden, which one do you want to do?

@slush0

slush0 commented Sep 5, 2016

Copy link
Copy Markdown

Hi, many projects depending on hidapi does not work on Mac now. Can you please review this PR? Thanks.

@mrpippy

mrpippy commented Sep 6, 2016

Copy link
Copy Markdown
Contributor

I think IOKit paths are the better solution--it's messy for hidapi to fabricate its own device path when it can get a meaningful one from the OS instead.

@signal11

Copy link
Copy Markdown
Owner

Brenden and Pavol, can you test #40 on the latest master, and let me know if it's workable on the OSX versions we want to support? I don't have the latest OSX here unfortunately. If you both say it's good, I'll pull it immediately.

@jpochyla

Copy link
Copy Markdown
Author

Hello, #40 work well for me. Let's do this!

@prusnak

prusnak commented Sep 13, 2016 •

Copy link
Copy Markdown
Contributor

@signal11 I don't have OS X, but my colleague @jpochyla tested it for us.

@mrpippy

mrpippy commented Sep 15, 2016

Copy link
Copy Markdown
Contributor

Working for me too, and the app I used to work on has been using a slightly older version of #40 for 4+ years on 10.5-10.11 without problems.

@signal11

Copy link
Copy Markdown
Owner

pushed 59a0767 474145e ae15b65 which are pull request #40 .

Again, thanks Brenden for your work on this.

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.

5 participants