Mouse events always report the position of the lower-left corner of the window when using directx driver.

Issue #285 new
J Dodd
created an issue

I'm using Python 3.5 with pygame 1.9.2a0 on Windows 10 and if I run the following:

#import pygame
#import os
os.putenv('SDL_VIDEODRIVER','directx')
pygame.init()
pygame.display.set_mode((640,480))
while True:
    for event in pygame.event.get():
        print(event)
        if event.type == pygame.QUIT:
            pygame.quit()

I get this: <Event(4-MouseMotion {'rel': (80, 7), 'buttons': (0, 0, 0), 'pos': (639, 479)})> the mouse position always reports being the lower-left corner pixel of the window. This problem does not occur with 'windib' driver, only with 'directx'.

Comments (2)

  1. Log in to comment