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

Re: [pygame] Key Presses



Ian Mallett wrote:
Cool, this is working better now.  It's as simple as:

keystring = event.unicode
Message += keystring

no mod checking or anything.  What is the reason for valid_keys?

Ian
yeah  no_list > black_list > white_list

I was thinking you may get some strange (visible) escape characters added but it doesn't seem to be a problem and you are probably handling most escaped keys anyway with upstream logic.

Most of the non standard keycode, key events just have an empty string anyway.