[haiku-3rdparty-dev] Re: MouseUp() and GetMouse()

  • From: Rene Gollent <anevilyak@xxxxxxxxx>
  • To: haiku-3rdparty-dev@xxxxxxxxxxxxx
  • Date: Tue, 8 Jan 2019 09:14:13 -0500

On Tue, Jan 8, 2019 at 9:04 AM Carlo Lanzotti - DynaDream
<clanzotti@xxxxxxxxxxxxx> wrote:

GetMouse(&point, &buttons);

In the MouseDown() hook is all ok, I get the correct buttons flags while
in the MouseUp() hook I get always 0 from the buttons variable.

I should add, in the case of MouseUp() that would be expected
behavior. GetMouse() retrieves the active state of the mouse, so if
you just received a mouse up, it implies that the button isn't
currently pressed.

Regards,

Rene

Other related posts: