Neel Basu
Neel Basu

Reputation: 12904

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 gaps ?

Upvotes: 0

Views: 129

Answers (1)

Raiv
Raiv

Reputation: 5781

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

Upvotes: 1

Related Questions