[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] pygame key event capture



if e.type == KEYDOWN:
print "a key from my remote is pressed", e.key

See if this will show you a valid keycode number. When you get a KEYDOWN event, the key that was pressed is builtin to the event attributes. Pygame just passes along the value it gets from SDL, and I am unsure if there is a max limit on this event value.