[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] mouse outside window
> 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?
> thanks,
> jeremy
You can try this: When pygame.mouse.get_focused() returns false, don't
respond to any mouse events.
---
Zak Arntson
www.harlekin-maus.com - Games - Lots of 'em