]> git.saurik.com Git - wxWidgets.git/commitdiff
Fill in mouse button and key state when generating mouse event for auto scrolling
authorJulian Smart <julian@anthemion.co.uk>
Tue, 8 Jan 2013 10:20:55 +0000 (10:20 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Tue, 8 Jan 2013 10:20:55 +0000 (10:20 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73352 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/scrlwing.cpp

index 200608475c19e2969dcf816b48bce6bceb5d659a..ea6ffab2766d35dd0962e30fa5c19f1ca1ab17fc 100644 (file)
@@ -162,7 +162,16 @@ void wxAutoScrollTimer::Notify()
 
             event2.SetEventObject(m_win);
 
 
             event2.SetEventObject(m_win);
 
-            // FIXME: we don't fill in the other members - ok?
+            wxMouseState mouseState = wxGetMouseState();
+
+            event2.m_leftDown = mouseState.LeftDown();
+            event2.m_middleDown = mouseState.MiddleDown();
+            event2.m_rightDown = mouseState.RightDown();
+
+            event2.m_shiftDown = mouseState.ShiftDown();
+            event2.m_controlDown = mouseState.ControlDown();
+            event2.m_altDown = mouseState.AltDown();
+            event2.m_metaDown = mouseState.MetaDown();
 
             m_win->GetEventHandler()->ProcessEvent(event2);
         }
 
             m_win->GetEventHandler()->ProcessEvent(event2);
         }