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

  • From: Carlo Lanzotti - DynaDream <clanzotti@xxxxxxxxxxxxx>
  • To: haiku-3rdparty-dev@xxxxxxxxxxxxx
  • Date: Tue, 8 Jan 2019 15:26:46 +0100

Il 08/01/2019 15:14, Rene Gollent ha scritto:

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



Hi Rene,

thanks for your reply. It just confused me because I was thinking it was something to report which mouse buttons were involved when calling the hooks.

Is there a way to get which buttons was released in the MouseUp() hook?

Thanks.

Best Regards,

--
Carlo Lanzotti

DynaDream - Dynamic Laboratory

http://www.dynadream.com


Other related posts: