added non mach version
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37957 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1447,10 +1447,16 @@ wxMouseState wxGetMouseState()
|
||||
ms.SetX(pt.x);
|
||||
ms.SetY(pt.y);
|
||||
|
||||
#if TARGET_API_MAC_OSX
|
||||
UInt32 buttons = GetCurrentButtonState();
|
||||
ms.SetLeftDown( (buttons & 0x01) != 0 );
|
||||
ms.SetMiddleDown( (buttons & 0x04) != 0 );
|
||||
ms.SetRightDown( (buttons & 0x02) != 0 );
|
||||
#else
|
||||
ms.SetLeftDown( Button() );
|
||||
ms.SetMiddleDown( 0 );
|
||||
ms.SetRightDown( 0 );
|
||||
#endif
|
||||
|
||||
UInt32 modifiers = GetCurrentKeyModifiers();
|
||||
ms.SetControlDown(modifiers & controlKey);
|
||||
|
Reference in New Issue
Block a user