From 2a2e63652d9580770e28a3241c061eecdf0f5603 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Fri, 10 Mar 2006 16:01:08 +0000 Subject: [PATCH] added non mach version git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37957 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/app.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/mac/carbon/app.cpp b/src/mac/carbon/app.cpp index 3e1b8065fc..8a3e1eb8d8 100644 --- a/src/mac/carbon/app.cpp +++ b/src/mac/carbon/app.cpp @@ -1447,11 +1447,17 @@ 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); ms.SetShiftDown(modifiers & shiftKey); -- 2.45.2