Closed Nowa-Ammerlaan closed 2 years ago
I'll look into this soon, thanks
This doesn't work anymore with your change in Python 3.10.4:
import evdev
import asyncio
async def main():
keyboard = evdev.InputDevice("/dev/input/event7")
async for event in keyboard.async_read_loop():
print(event.type, event.code, event.value)
loop = asyncio.new_event_loop()
loop.run_until_complete(main())
python-evdev tests are very rudimentary afaik. I found this by running input-remappers tests
From the Python 3.11 Changelog:
This small change should make things work with python 3.11, the tests are passing for me.
Signed-off-by: Andrew Ammerlaan andrewammerlaan@gentoo.org