On 11/3/08, josch <[EMAIL PROTECTED]> wrote: > > steps to reproduce: > > take this code: > > import pyglet > window = pyglet.window.Window(800, 600) > > @window.event > def on_mouse_drag(x, y, dx, dy, buttons, modifiers): > print x, y, dx, dy > > @window.event > def on_mouse_motion(x, y, dx, dy): > print x, y, dx, dy > > pyglet.app.run() > > and execute it with your mouse positioned in a way that is is located > where the window is going to show up. > when the mouse is than moved or dragged the first dx/dy values will be > the same as the initial x, y values. > this does not happen when the mouse is moved into the window after the > application started. > output: > 211 388 211 388 > 211 387 0 -1 > 210 387 -1 0 > 210 386 0 -1 > 210 385 0 -1 > 210 384 0 -1 > > bug or feature?
What platform/version are you running? Alex. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
