I'm trying to make a program in which I need to emulate a key press from a gamepad, I looked for it a lot but the only module I found is python-evdev. I have tried to install it through the use of
pip install evdev
but there isn't any matching version. Also I have tried to download the module and manually move it into the site-packages folder (I have no idea if this is correct or not) but when i try to import the module i get this error:
ImportError: cannot import name '_ecodes' from partially initialized module 'evdev' (most likely due to a circular import)
.
Is there something I did wrong or maybe is there another library which does the same thing?