I assume your code looks something like:
on_mouse_move(self, x, y):
self.x = x
self.y = y
draw(self):
draw_mouse(self.x, self.y)
the solution is for it to look more like
draw(self):
draw_mouse(get_mouse_x(), get_mouse_y())
The problem is compounded when your mouse events begin to lag behind
your handling the events (You end up drawing a mouse at a position
from say, five mouse move events ago).
However, apparently I was mistaken and pyglet has no api for getting
the current mouse position.
On Sun, Dec 1, 2013 at 12:05 PM, Tobias Jammer
<[email protected]> wrote:
> Sorry, I don't understand what you mean by that. Could you elaborate?
>
> Am Samstag, 30. November 2013 01:27:12 UTC+1 schrieb Andre D:
>>
>> Get the actual mouse position not the last mouse event you saw, drop
>> old mouse move events.
>
> --
> You received this message because you are subscribed to the Google Groups
> "pyglet-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/pyglet-users.
> For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups
"pyglet-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/groups/opt_out.