Ohh my, right in the face. Thanks :)
----- Original Message ----- From: "Drew Smathers" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Thursday, March 06, 2008 2:33 AM Subject: Re: FPS mouse movement > > 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 > > > > > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.516 / Virus Database: 269.21.4/1312 - Release Date: > 04/03/2008 21:46 > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
