QMouseEvent to win32 MOUSEINPUT
I need to convert a QMouseEvent
to MOUSEINPUT
. MOUSEINPUT
has so many flags like MOUSEEVENTF_LEFTDOWN
, MOUSEEVENTF_LEFTUP
but QMouseEvent
has very limited number of actions. do there is any existing solution ? If I need to wrte it by myself how can I cover the g开发者_开发问答aps ?
QT covers all cases of mouse using, but it splitted them to different variables instead of MOUSEINPUT
.
for example,
MOUSEEVENTF_LEFTDOWN
would be
QMouseEvent
with type = QEvent::MouseButtonPress , button = Qt::LeftButton.
and so on.
The only win events not covered by qt are strange events MOUSEEVENTF_XDOWN
and MOUSEEVENTF_XUP
精彩评论