RetroControllerPi/evemu.py
2020-06-23 01:06:01 +01:00

10 lines
136 B
Python

from evdev import UInput, ecodes as e
ui=UInput()
ui.write(e.EV_KEY, e.KEY_A, 1)
ui.write(e.EV_KEY, e.KEY_A, 0)
ui.syn()
ui.close()