On Mon, Jun 29, 2009 at 9:32 AM, Evan Kroske<
e.kroske@xxxxxxxxx> wrote:
> I'm trying to make a game with pygame2, but I'm having trouble figuring out
> how to use the shift and control keys to control the game. I understand that
> Event.mod returns a number that you can compare to the sdl mod key constants
> to determine what mod keys are being pressed. However, I also understand
> that you have to do some kind of bitwise operation to accomplish this, and I
> have no idea how to do that.
> Assuming that pygame is similar to pygame2 in this respect, could somebody
> give me a code snippet to demonstrate how to detect if a mod key is being
> pressed? Thanks.
> Evan Kroske