Ihor Dutchak

Results 428 comments of Ihor Dutchak

I do not see any indication that this is a HIDAPI issue. And the conversation is stalled. And I don't see how HIDAPI mainteinars can help here.

I have had a little "weekend codding" session, and tried to implement the WinRT backend implementation for HIDAPI, and here is the result: https://github.com/libusb/hidapi/compare/winrt I'm not even sure if it...

I believe there're still restrictions on WinAPI usage (and HIDAPI/WinAPI doesn't follow them). I'll search for link with description later.

> This seems to work pretty well, tested under Windows 11 with VS2022. I do not believe you've actually used the winrt backend. You need to pass `-DHIDAPI_WITH_WINRT=ON` and run...

Looks about right - consistent with my testing. All of what is missing - are the limitation of the WinRT API for HID devices.

> Then how to deal with disconnecting devices As of right now - only by using OS-specific API in your application directly. > (on MacOS this might cause app and...

1) What version of HIDAPI is used here? 2) Can you confirm that `hid_enumerate` is not tried to be used from multiple threads concurently?

Oh, additionally: not only `hid_enumerate` - ***none of*** `hid_init`/`hid_enumerate`/`hid_open`/`hid_open_path`/`hid_close`/`hid_exit` are thread-safe on macOS - and it has nothing to do with hotplug support.

> If this doesn't have anything to do with hotplugging, maybe I should open another issue. Yes please. At least this thread is about having an additional callbacks to report...

@k1-801 please excuse me for not looking into your PRs. Really appreciate all the work you've done. Got extremely busy lately. I promice to get back to it as soon...