On OSX there is a user configurable double-click time. It would be
nice if pyglet had a routine to get the current platforms idea for
this value.
My game uses double-clicks a lot but I would still rate this pretty
low as a feature.

On Apr 7, 7:40 pm, "Alex Holkner" <[EMAIL PROTECTED]> wrote:
> On 4/8/08, incantus <[EMAIL PROTECTED]> wrote:
>
>
>
> >  Is it possible for pyglet to capture double clicks? Or does anybody
> >  have a suggestion for using mouse_pressed to capture double clicks?
>
> This isn't really something pyglet can do: a double-click on the
> pyglet window isn't really a double-click if one click was on a
> button, the other on a text field.
>
> It's quite easy to generate your own double-click events from the
> on_mouse_press event.  Just check that:
>
> * the two clicks are on the same widget
> * the same button and modifiers are used
> * they are within some proximity (typically a 4x4 rectangle centered
> on the first click)
> * they are within some bounded time (I like 0.3 seconds)
>
> For triple-clicks, the same conditions apply, except that the third
> click needs to occur 0.3 seconds after the second click (not the
> first).
>
> Alex.
--~--~---------~--~----~------------~-------~--~----~
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