Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Call hid_init() at import time, to avoid macOS crash (#150)
fixes #142 fixes #148 note #148 (comment) : > HIDAPI on macOS has an additional issue regarding thread-safety. > I did encountered it in my project(s) but didn't have enough time to gather info/find a root cause. > Looks like on macOS hid_init/hid_exit needs to be called in the same thread, > which is an additional restriction compared to other platforms.
- Loading branch information