dblclick? Cannot get to work in Max5 SDK

Nov 23, 2008 at 7:30pm

dblclick? Cannot get to work in Max5 SDK

I’ve used both mousemove and dblclick in an external I am writing and no matter what I cannot seem to get dblclick to register.

Should I be doing this another way?

I want to detect a double click with the left mouse button.

Thanks!
Rick

#41015
Nov 23, 2008 at 7:53pm

On 23 nov. 08, at 20:30, Rick Burnett wrote:
> I’ve used both mousemove and dblclick in an external I am writing
> and no matter what I cannot seem to get dblclick to register.
>
> Should I be doing this another way?

void myobject_mousedoubleclick(t_ myobject *x, t_object *patcherview,
t_pt pt, long modifiers)

Roby

#145648
Nov 23, 2008 at 8:03pm

“mousedoubleclick” it is. Thanks so much! I do have an additional question, how can you tell which button was double clicked?

#145649
Dec 4, 2008 at 3:15pm

You can look at the modifiers parameter. In addition to key modifiers there are eLeftButton, eRightButton, and even eMiddleButton flags.

Rob

#145650

You must be logged in to reply to this topic.