Check for keystroke

Brian ThisIsNotMyReal at ddress.com
Wed Sep 22 10:38:54 EDT 2004


Also, this is being done in Linux and does NOT need to be multi-OS 
compatible.


Brian <ThisIsNotMyReal at ddress.com> wrote in
news:Xns956C6558D1D9Anonenonecom at 24.93.43.121: 

> Inside a loop, I need to passively check to see if a key is pressed or
> not without pausing like raw_input does.  Some pseudocode:
> 
> While true:
>          If a key is pressed
>                   which key is pressed
>          
>          do other stuff inside loop
> 
> 
> Google groups turned up this thread:
> 
> http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&safe=off&th=
> 3221aa1ee6ef2ec2&seekm=2259b0e2.0307310800.3310ec83%
> 40posting.google.com&frame=off
> 
> TinyURL: http://tinyurl.com/4chqh
> 
> 
> But neither the pygame or curses solution worked.  Any new thoughts on
> this?
> 




More information about the Python-list mailing list