문제

Is there any way to install the python-evdev library on Mac OS? When I try to install it, Mac says that The linux/input.h header file is missing. (of course). Is it possible to install it under Mac? Or do you know any other alternative?

I have an application that reads the Wacom inputs in /dev/input/wacom, and it works great on Linux, but I'm trying to run it under Mac as well.

도움이 되었습니까?

해결책

I'm afraid that this isn't possible, since the evdev interface is specific to the Linux kernel. Even if you managed to install it, it would not work as there are no /dev/input/* devices from which events can be read on MacOS.

If you're looking for a portable solution, you may want to look into a library that abstracts event handling, such as pygame or SDL. This answer also covers the options that you have for processing events in MacOS.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top