git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58890
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// these parameters are not given for all events
UInt32 button = [nsEvent buttonNumber];
UInt32 clickCount = 0;
- if ( eventType != NSScrollWheel )
+ if ( [nsEvent respondsToSelector:@selector(clickCount:)] )
[nsEvent clickCount];
wxevent.m_x = screenMouseLocation.x;
break ;
case NSMouseEntered :
+ wxevent.SetEventType( wxEVT_ENTER_WINDOW ) ;
+ break;
case NSMouseExited :
+ wxevent.SetEventType( wxEVT_LEAVE_WINDOW ) ;
+ break;
case NSLeftMouseDragged :
case NSRightMouseDragged :
case NSOtherMouseDragged :