[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] right mouse down / up ?
On, Mon May 16, 2005, altern wrote:
> hi
>
> how do i get to see if the right mouse has been down or up?
> i know there is normal mousedown and up using
> pygame.locals.MOUSEBUTTONDOWN
> but i cannot find if there is a modifier for this.
>
You can check it using the event.button property. The documentation
tells about this in those lines:
MOUSEBUTTONDOWN pos, button
^^^^^^^^^^^^ - relevant properties
The button can be one of those: 0, 1, 2 (left, middle, right).
Regards
Marcus