Search code examples
pythonlinuxdevice

Format of /dev/input/event*


What is the "format" of the character devices located in /dev/input/event*?

In other words, how can I decode the character stream? A Python example would be greatly appreciated.


Solution

  • Right here in the Input.py module. You'll also need the event.py module.