Forums > Dev

dblclick? Cannot get to work in Max5 SDK

November 23, 2008 | 7:30 pm

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


November 23, 2008 | 7:53 pm

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


November 23, 2008 | 8:03 pm

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


December 4, 2008 | 3:15 pm

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

Rob


Viewing 4 posts - 1 through 4 (of 4 total)