1. pygame
  2. pygame
  3. pygame
  4. Issues

Issues

Issue #163 new

No mouse move events unless mouse button is pressed when using python 3.3

Thomas Hansen
created an issue

When I compile pygame with python 3.3, I do not receive any MOUSEMOVE events unless there is first a MOUSEBUTTONDOWN event. In addition, the MOUSEBUTTONDOWN event will have the pos set to the pos of the last MOUSEMOVE event rather than the actual current position of the mouse cursor. For Example:

!!no mouse move event while just moving mouse.. first mousedown event has correct position... mouse move event 1 has correct position, etc.. mouse move event N has correct position first mouse buttonu p event has same position as mouse move event N !! no mouse move events after mouse button up event !! next mouse button down event has same position of mouse move event N, althoug cursor may by now be somewhere completely different.

I'm compiling pygame from hg repo ( commit d4452e3) on OSX 10.8.2 against SDL 1.2.15.

I have compiled the same pygame version (current default branch) using both python 2.7 and python 3.3 against the same version of SDL; the issue occurs only when using python 3.3

Comments (3)

  1. kosc

    Did you mean MOUSEMOTION, not MOUSEMOVE? I didn't find MOUSEMOVE event, but found MOUSEMOTION and it works fine. (python3.3, pygame 1.9.2pre)

  2. Log in to comment