开发者

QMouseEvent to win32 MOUSEINPUT

开发者 https://www.devze.com 2023-03-06 16:04 出处:网络
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 s

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

0

精彩评论

暂无评论...
验证码 换一张
取 消