keypressed() function

pinkfloydhomer at gmail.com pinkfloydhomer at gmail.com
Tue Dec 26 08:25:52 EST 2006


I need a function (blocking or non-blocking) that tells me if a key has
been pressed (even before it has been released etc.). Also, I would of
course like to know _which_ key has been pressed.

I know that this probably does not exist in the Python library already
as a platform-independant abstraction (even though it probably could),
but then I would at least like solutions that works on Windows and on
Linux.

/David




More information about the Python-list mailing list