[haiku-3rdparty-dev] Re: Detect Double-Click

  • From: Jon Yoder <darkwyrm@xxxxxxxxx>
  • To: haiku-3rdparty-dev@xxxxxxxxxxxxx
  • Date: Sun, 30 Oct 2011 12:41:12 -0400

On 10/30/2011 09:13 AM, ciprian.nedisan@xxxxxxxxxxxx wrote:
hi Does somebody know what is the standard way to detect a double
click on a view?

Perhaps it would be a good idea, to add to BView a hook for double
click?
Nah. The B_MOUSE_DOWN message has a "clicks" field which will tell you
how many times the mouse button has been pressed. If you're doing this from within BView::MouseDown, you should be able to call CurrentMessage() to get access to the message itself.

--Jon

Other related posts: