Hi,

Imagine that I am in a "update(dt)" function doing animation stuff, and 
need to position some sprite according to the mouse position: is there an 
easy way to get the current mouse position (x, y coordinates)?
Or the only way is to creat something like a global variable x and y and 
keep track/registe the mouse x, y inside the on_mouse_motion event each 
time it moves?

I am tired and sleepy, working in a hurry because of deadlines, searched 
but can't find an easy way - sorry if this question is stupid and has an 
obvious answer I am not seeing in this moment.

All the best 

-- 
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 https://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to