[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[pygame] event processing?



David Clark writes:
 > 
 > The docs mention that event.poll() returns a NOEVENT event if nothing
 > is on the queue, and this has a type that evaluates to 0. How do I
 > determine the type of an event? 

Ah, I've got it now. I call:

event.poll().type

That's clear enough from the example programs. I guess I was confused,
since dir(event) returned [].

-- 
David "Futility [D!]" Clark  |  Goodbye, the future's sold out -       |
silenus@telus.net            |     there's no use screaming.   : OLP   |
------------------------------------------------------------------------

____________________________________
pygame mailing list
pygame-users@seul.org
http://pygame.seul.org