I'm making a robot car and I need a library like pygame that is able to recognize keyboard input and do a task (a created function, i.e. move forward, backward, left, right). But I need a module that doesnt bring up a GUI like pygame does and has a time delay function like pygame has. Basically everything that pygame has without the game creation part and the GUI part. Thanks.


The standard termios and tty library can be used. See the answers here: https://stackoverflow.com/questions/27750536/python-input-single-character-without-enter

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.