RetroControllerPi/evemu.py

11 lines
136 B
Python
Raw Normal View History

2020-06-23 02:06:01 +02:00
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()