]> git.somenet.org - pub/jan/scripts.git/blob - hax/keylogger.py
use bug to generate deltat-game-credits.
[pub/jan/scripts.git] / hax / keylogger.py
1 #!/usr/bin/env python
2
3 from evdev import InputDevice, categorize, ecodes
4
5 dev = InputDevice('/dev/input/event18')
6 import pprint
7
8 for event in dev.read_loop():
9     if event.type == ecodes.EV_KEY:
10         print(categorize(event))
11         #pprint.pprint((event))