On Wed, Mar 5, 2008 at 8:26 PM, Txema Vicente <[EMAIL PROTECTED]> wrote:
>
>  How do you prevent the mouse going outside the window when panning a
>  FPS-style camera?
>
>  Im using the ugly win32api.SetCursorPos, but I hate to import that.

I think this is what you need:

http://pyglet.org/doc/programming_guide/mouse_exclusivity.html

Though this means your application is now in charge of drawing and
moving the mouse (based on dx,dy) - vs. the windowing manager.

-- 
\\\\\/\"/\\\\\\\\\\\
\\\\/ // //\/\\\\\\\
\\\/  \\// /\ \/\\\\
\\/ /\/ / /\/ /\ \\\
\/ / /\/ /\  /\\\ \\
/ /\\\  /\\\ \\\\\/\
\/\\\\\/\\\\\/\\\\\\
               d.p.s

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