Handle middle mouse button in Standalone and Processes runtime modes.

This commit is contained in:
Vincent Wei
2020-03-12 11:14:40 +08:00
parent 8b24b1243b
commit c720b2a9ca
2 changed files with 21 additions and 3 deletions

View File

@@ -166,21 +166,30 @@ static void ParseEvent (PMSGQUEUE msg_que, int event)
case ME_LEFTDOWN:
Msg.message = MSG_LBUTTONDOWN;
break;
case ME_RIGHTDOWN:
Msg.message = MSG_RBUTTONDOWN;
break;
case ME_LEFTUP:
Msg.message = MSG_LBUTTONUP;
break;
case ME_LEFTDBLCLICK:
Msg.message = MSG_LBUTTONDBLCLK;
break;
case ME_RIGHTDOWN:
Msg.message = MSG_RBUTTONDOWN;
break;
case ME_RIGHTUP:
Msg.message = MSG_RBUTTONUP;
break;
case ME_RIGHTDBLCLICK:
Msg.message = MSG_RBUTTONDBLCLK;
break;
case ME_MIDDLEDOWN:
Msg.message = MSG_MBUTTONDOWN;
break;
case ME_MIDDLEUP:
Msg.message = MSG_MBUTTONUP;
break;
case ME_MIDDLEDBLCLICK:
Msg.message = MSG_MBUTTONDBLCLK;
break;
}
if (__mg_do_drag_drop_window (Msg.message, me->x, me->y)) {

View File

@@ -162,6 +162,15 @@ static void ParseEvent (PMSGQUEUE msg_que, int event)
case ME_RIGHTDBLCLICK:
Msg.message = MSG_RBUTTONDBLCLK;
break;
case ME_MIDDLEDOWN:
Msg.message = MSG_MBUTTONDOWN;
break;
case ME_MIDDLEUP:
Msg.message = MSG_MBUTTONUP;
break;
case ME_MIDDLEDBLCLICK:
Msg.message = MSG_MBUTTONDBLCLK;
break;
}
Msg.lParam = MAKELONG (me->x, me->y);