From 52682336e8b619044682102d16f22a058f5b2a59 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Tue, 8 Jan 2013 10:20:55 +0000 Subject: [PATCH] Fill in mouse button and key state when generating mouse event for auto scrolling git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73352 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/scrlwing.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/generic/scrlwing.cpp b/src/generic/scrlwing.cpp index 200608475c..ea6ffab276 100644 --- a/src/generic/scrlwing.cpp +++ b/src/generic/scrlwing.cpp @@ -162,7 +162,16 @@ void wxAutoScrollTimer::Notify() 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); } -- 2.45.2