Python evdev equivalent for OSX

后端 未结 2 693
死守一世寂寞
死守一世寂寞 2021-01-18 12:40

I have written a python script that polls evdev for a HID barcode scanner (emulates a keyboard): the script works well on Linux platforms (Ubuntu). Is there an OS X Python

2条回答
  •  抹茶落季
    2021-01-18 13:04

    I guess there is no evdev port for mac os because last one depends on linux kernel. If you want to implement some business logic on a HID in mac os you should to use as in the comments suggested some high level abstraction. But if you want evdev on low level, I think easy way to do so using the Docker. I have no experience with HID devices on mac os, but I resolved the same problem with the other driver.

提交回复
热议问题