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

Re: [pygame] mouse.get_pos()?



import pygame
from pygame.locals import *

pygame.init()
screen = pygame.display.set_mode((640, 480))
           
while 1:
    for event in pygame.event.get():
        if event.type == KEYDOWN:
            exit()
    print pygame.mouse.get_pos()


I just put together this code, it works fine here. Any difference from yours?

On Mon, Aug 17, 2009 at 23:38, Ian Mallett <geometrian@xxxxxxxxx> wrote:
Are you calling pygame.event.get() or a similar call?
Give us more information.