Thanks, but in this case I don't really care where the mouse is.
[edit: oh wait... that's not what it's doing, is it.]
Here's what I'm trying to do. I have a 3D airplane, and I want to fly it. The control method is the mouse (since type_of_input == 1), so if I push the mouse forward, the plane rotates down, pull the mouse back and the plane rotates up. So, what I really need is for each frame of the game, something to add the x and y distance traveled by the mouse to the value of two variables ('xrot' and 'yrot').
For example,
If in one frame, the mouse travels two pixels up and 1 pixel left, (xrot = xrot - 1) and (yrot = yrot + 2).
If in the next frame, the mouse moves 1 pixel up and 0 pixels left/right, then (xrot = xrot + 0) and (yrot = yrot + 1).
etc.
[edit: I have a hunch that I forgot:
something = pygame.mouse.get_pos()
so it never updated it]
[reedit: No, that didn't seem to fix it]
[Edited by - Geometrian on April 21, 2007 10:15:30 PM]