Ok, mouse example up on issues list: http://code.google.com/p/pyglet/issues/detail?id=611
Example code here: https://github.com/adamlwgriffiths/pyglet-issues/tree/master/kytten-osx Sorry to hijack the thread. Please continue =) Cheers, Adam On Tuesday, September 25, 2012 4:17:32 PM UTC+10, Adam Griffiths wrote: > > Correction, it was Kytten, not Rabbyt =P > > On Tuesday, September 25, 2012 4:13:46 PM UTC+10, Adam Griffiths wrote: >> >> I'll knock up a simple Rabbyt example and post a bug on the issues list. >> >> Cheers for confirming =) >> Adam >> >> On Tuesday, September 25, 2012 10:05:42 AM UTC+10, Matt Ebb wrote: >>> >>> On Mon, Sep 24, 2012 at 11:32 PM, Adam Griffiths >>> <[email protected]> wrote: >>> > I'm interested if you see the mouse issue still. >>> > I have a feeling there's a regression there. >>> > When I used Rabbyt, I found the Y axis was inverted; dragging GUI >>> elements >>> > down, moved them up. >>> >>> I think this is a Mac OS X thing - I've got pyglet 1.2a1 running on >>> both Mac OS X and Linux (centos 6.2) and the coordinates I get out of >>> the mouse events on OS X are inverted in Y. I recall from another >>> project I was involved with (Blender), I think this was something >>> happening on the OS level, it's just a difference in the coordinate >>> system that Cocoa uses for mouse events compared to other OSes. >>> >>> What I've been doing in my pyglet script is: >>> if platform.system() != 'Darwin': dy = -dy >>> where I need to query mouse y values. It probably would be a lot nicer >>> to have this compensated for within pyglet though... >>> >>> cheers >>> >>> Matt >>> >> -- You received this message because you are subscribed to the Google Groups "pyglet-users" group. To view this discussion on the web visit https://groups.google.com/d/msg/pyglet-users/-/yYRXHlEYjCwJ. 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.
