Code: Select all
Index: CIrrDeviceWinCE.cpp
===================================================================
--- CIrrDeviceWinCE.cpp (revision 2662)
+++ CIrrDeviceWinCE.cpp (working copy)
@@ -140,6 +140,7 @@
event.MouseInput.Event = irr::EMIE_LMOUSE_PRESSED_DOWN;
event.MouseInput.X = (short)LOWORD(lParam);
event.MouseInput.Y = (short)HIWORD(lParam);
+ event.MouseInput.ButtonStates = wParam & MK_LBUTTON;
dev = getDeviceFromHWnd(hWnd);
if (dev)
dev->postEventFromUser(event);
@@ -222,6 +223,7 @@
event.MouseInput.Event = irr::EMIE_MOUSE_MOVED;
event.MouseInput.X = (short)LOWORD(lParam);
event.MouseInput.Y = (short)HIWORD(lParam);
+ event.MouseInput.ButtonStates = wParam & MK_LBUTTON;
dev = getDeviceFromHWnd(hWnd);
if (dev)