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

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

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

I also tried by looking at the looper:

if (BMessage* message = Window()->CurrentMessage()) {
         if (message->FindInt32("buttons", (int32*)&buttons) != B_OK) ...

Is there a reason you're doing != B_OK rather than == here? That would
result in you only entering that if block if you fail to find the
buttons value. You can verify what is and isn't in the message via
message->PrintToStream() in any case, which will dump it to the
console.

Best Regards,

Rene

Other related posts: