On Fri, Jan 30, 2009 at 2:10 PM, __doc__ <[email protected]> wrote:

>
> On Jan 30, 3:13 pm, Tristam MacDonald <[email protected]> wrote:
> > Hmm, interesting question here: should a mouse movement event be
> generated
> > when the mouse is warped?
>
> I use the set_mouse_pos in the following fashion:
> 1) detect if user drags on a handle element
> 2) make the mouse invisible and
> 3) use the drag events to adjust the handle position
> 4) listen to the mouse release event to
> 5) adjust the mouse position to the middle of the handle and make it
> visible again
>

I can think of three more natural seeming methods:a) move the handle to
match the mouse movement (intuitive)
b) use a virtual cursor (with a textured quad)
c) don't worry about correcting the cursor position (most commercial
modelling software doesn't)

I am curious why it is preferable to adjust the hardware cursor?

-- 
Tristam MacDonald
http://swiftcoder.wordpress.com/

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to