[visionegg] pygame.mouse.get_pos()

Hello all,
As I have been going through the programming, I have run into a major stumbling 
block when it comes to pygame.mouse.get_pos(). 
 
According to the description , pygame.mouse.get_pos()  takes the coordinate 
mapping system from the upper left hand corner of the display. Is there anyway 
to make this map out the coordinates from the bottom right hand corner, so that 
standard x-y coordinates can be applied (such as in the positioning of text)? 
 
For reference here's how the program reads:
 just_current_pos = mouse_position
    (x,y) = pygame.mouse.get_pos()
    y = screen.size[1]-y # convert to OpenGL coords
    mouse_position = (x,y)
    if just_current_pos != mouse_position:
        last_mouse_position = just_current_pos
 
My attempts at changing the coordinates mathematically (y= -y +600) have 
failed, either by having the display outside of the viewing screen, or my 
personal favorite, inverting the mouse all-together. I've tried manipulating 
the y= line as well as the mouse_position line, all to no avail.
 
Any help or suggestions would be greatly appreciated.
 
Thanks,
Jeff
=====================================The Vision Egg mailing list
Archives: http://www.freelists.org/archives/visionegg
Website: http://www.visionegg.org/mailinglist.html

Other related posts: