Modified mouse ENTER/LEAVE events so that they also
carry information about the state of the mouse buttons (they only had info about SHIFT and CTRL keys so far) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@7825 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -990,7 +990,13 @@ void wxWindow::OnIdle(wxIdleEvent& event)
|
|||||||
state |= MK_SHIFT;
|
state |= MK_SHIFT;
|
||||||
if ( wxIsCtrlDown() )
|
if ( wxIsCtrlDown() )
|
||||||
state |= MK_CONTROL;
|
state |= MK_CONTROL;
|
||||||
|
if ( GetKeyState( VK_LBUTTON ) )
|
||||||
|
state |= MK_LBUTTON;
|
||||||
|
if ( GetKeyState( VK_MBUTTON ) )
|
||||||
|
state |= MK_MBUTTON;
|
||||||
|
if ( GetKeyState( VK_RBUTTON ) )
|
||||||
|
state |= MK_RBUTTON;
|
||||||
|
|
||||||
wxMouseEvent event(wxEVT_LEAVE_WINDOW);
|
wxMouseEvent event(wxEVT_LEAVE_WINDOW);
|
||||||
InitMouseEvent(event, pt.x, pt.y, state);
|
InitMouseEvent(event, pt.x, pt.y, state);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user