Sure, just pointing out that the API is available, and that it shouldn't be
more than an afternoon's work for anybody who wanted to implement this
feature on a cross-platform basis (assuming access to the relevant systems
for testing).
2009/1/30 Tristam MacDonald <[email protected]>

> Right, but on the Mac at least you also need to do a few coordinate
> transforms, as the application typically wishes to operate on the mouse in
> window space.
>
> On Fri, Jan 30, 2009 at 8:42 AM, Martin O'Leary <[email protected]>wrote:
>
>> And on OS X, you're looking at CGWarpMouseCursorPosition(CGPoint pos).
>>
>> 2009/1/30 sol <[email protected]>
>>
>>
>>> For win32, the function is:
>>>
>>> user32.SetCursorPos(int X,int Y)
>>>
>>>
>>> On Jan 29, 5:14 pm, Tristam MacDonald <[email protected]> wrote:
>>> > On Thu, Jan 29, 2009 at 4:44 PM, Alex Holkner <[email protected]
>>> >wrote:
>>> >
>>> >
>>> >
>>> >
>>> >
>>> > > On Thu, Jan 29, 2009 at 11:26 PM, __doc__ <[email protected]> wrote:
>>> >
>>> > > > In the spirit of pyglet being a cross platform portable framework,
>>> and
>>> > > > in the light that it does handle the mouse position internally, I
>>> do
>>> > > > think the *proper* way to set the mouse position would be this
>>> patch
>>> > > >http://paste.pocoo.org/show/101686/
>>> >
>>> > > > any comment?
>>> >
>>> > > A feature-providing patch like this has no chance of being accepted
>>> > > until equivalent Windows and OS X methods are also included.  It's a
>>> > > reasonable suggestion, but I don't have the time to do this myself at
>>> > > the moment.
>>> >
>>> > > Alex.
>>> >
>>> > I could use this feature at some point, so I will see about adding a
>>> Mac
>>> > version of this patch to this thread in the near future. As for
>>> Windows,
>>> > that will have to fall to someone else.
>>> >
>>> > --
>>> > Tristam MacDonaldhttp://swiftcoder.wordpress.com/
>>>
>>>
>>
>>
>>
>
>
> --
> Tristam MacDonald
>
> http://swiftcoder.wordpress.com/
>
> >
>

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