[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] mouse outside window



Fri, Sep 26, 2003 at 04:02:36PM -0400 in <600EE5B7-F05C-11D7-8044-003065FBBBAC@bu.edu>,
Jeremy Biddle <biddle@bu.edu> spake:
>on OSX/py2.3/pygame, mouse motion outside the window returns 
>coordinates that are clamped to the window -- is this expected behavior?
>i am mousing around and when i go outside the window my objects that 
>are sitting on the borders still receive mouse events, which i would 
>rather they not, since the mouse isn't actually over them!
>any thoughts?

  Leave a 1-pixel border around your game, and ignore any mouse events
while the cursor is in that border.

-- 
 <a href="http://kuoi.asui.uidaho.edu/~kamikaze/";> Mark Hughes </a>