this->GetMouse (&point, &buttons, false);
rq.window = this->Window ();
- rq.btn_no = 0;
- if (!(previous_buttons & B_PRIMARY_MOUSE_BUTTON) &&
- (buttons & B_PRIMARY_MOUSE_BUTTON))
+ if (!(previous_buttons & B_PRIMARY_MOUSE_BUTTON)
+ && (buttons & B_PRIMARY_MOUSE_BUTTON))
rq.btn_no = 0;
- else if (!(previous_buttons & B_SECONDARY_MOUSE_BUTTON) &&
- (buttons & B_SECONDARY_MOUSE_BUTTON))
+ else if (!(previous_buttons & B_SECONDARY_MOUSE_BUTTON)
+ && (buttons & B_SECONDARY_MOUSE_BUTTON))
rq.btn_no = 2;
- else if (!(previous_buttons & B_TERTIARY_MOUSE_BUTTON) &&
- (buttons & B_TERTIARY_MOUSE_BUTTON))
+ else if (!(previous_buttons & B_TERTIARY_MOUSE_BUTTON)
+ && (buttons & B_TERTIARY_MOUSE_BUTTON))
rq.btn_no = 1;
+ else
+ return;
+
previous_buttons = buttons;
rq.x = point.x;
this->GetMouse (&point, &buttons, false);
rq.window = this->Window ();
- rq.btn_no = 0;
if ((previous_buttons & B_PRIMARY_MOUSE_BUTTON)
&& !(buttons & B_PRIMARY_MOUSE_BUTTON))
else if ((previous_buttons & B_TERTIARY_MOUSE_BUTTON)
&& !(buttons & B_TERTIARY_MOUSE_BUTTON))
rq.btn_no = 1;
+ else
+ return;
+
previous_buttons = buttons;
rq.x = point.x;