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

Re: [pygame] mouse scroll wheel



On Wednesday 13 August 2003 11:50 am, Pete Shinners wrote:
>
> the "MOUSEBUTTONDOWN" event actually comes with a "button" attribute,
> so you can know which button was pushed at the time of the event.
>
> if event.type == pygame.MOUSEBUTTONDOWN:
>      print event.button

Thanks, Pete. That's exactly what I was looking for.