eh sry... line numbers make no sense...
this one:
@XlibEventHandler(xlib.MotionNotify)
def _event_motionnotify(self, ev):
x = ev.xmotion.x
y = self.height - ev.xmotion.y
dx = x - self._mouse_x
dy = y - self._mouse_y
sry for double posting...
On Nov 4, 7:34 pm, josch <[EMAIL PROTECTED]> wrote:
> this seems to be about line 1340, 1341 in pyglet/window/xlib/
> __init__.py
> when the mouse is located over the window when the app starts, then
> self._mouse_x and self._mouse_y are zero - which is wrong and results
> in wrong initial dx and dy values.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pyglet-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/pyglet-users?hl=en
-~----------~----~----~----~------~----~------~--~---