0

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.

Claudio
  • 10,614
  • 4
  • 31
  • 71
  • Consider mac ports and homebrew to help. Sometimes you do have to build the required libraries yourself, which is a pain. Good exercise though. – Derek Litz Dec 20 '13 at 10:41

1 Answers1

7

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.

Community
  • 1
  • 1
gvalkov
  • 3,977
  • 30
  • 31