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

Re: [pygame] pygame Event



On Fri, Mar 4, 2016 at 6:55 AM, Ian Mallett <ian@xxxxxxxxxxxxxx> wrote:
> As a sidenote, I haven't ever had occasion to use this functionality, as
> there are more idiomatic and clear ways to retrieve information about
> events' data.
>


This really is the key point here. Looking at events, you first check
ev.type and will do different things based on the type anyway. And if
you need to debug things, the respective string representation, str()
and repr() both appear to boil down to the same, really informative
result.

cheers!
mar77i