From 6406519108408b22af8472da68f303fa1655aa98 Mon Sep 17 00:00:00 2001 From: Erwin Coumans Date: Wed, 10 Sep 2014 20:50:12 -0700 Subject: [PATCH] allow to compile using gcc-4.x on Mac OSX --- btgui/OpenGLWindow/MacOpenGLWindow.mm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/btgui/OpenGLWindow/MacOpenGLWindow.mm b/btgui/OpenGLWindow/MacOpenGLWindow.mm index cd77a9461..9283d6e66 100644 --- a/btgui/OpenGLWindow/MacOpenGLWindow.mm +++ b/btgui/OpenGLWindow/MacOpenGLWindow.mm @@ -374,8 +374,8 @@ void MacOpenGLWindow::createWindow(const b3gWindowConstructionInfo& ci) // [NSEvent addGlobalMonitorForEventsMatchingMask:NSMouseMovedMask]; - [NSEvent addGlobalMonitorForEventsMatchingMask:NSMouseMovedMask handler:^(NSEvent *event) - { +// [NSEvent addGlobalMonitorForEventsMatchingMask:NSMouseMovedMask handler:^(NSEvent *event) + // { //[window setFrameOrigin:[NSEvent mouseLocation]]; // NSPoint eventLocation = [m_internalData->m_window mouseLocationOutsideOfEventStream]; @@ -386,10 +386,10 @@ void MacOpenGLWindow::createWindow(const b3gWindowConstructionInfo& ci) // printf("mouse coord = %f, %f\n",m_mouseX,m_mouseY); - if (m_mouseMoveCallback) - (*m_mouseMoveCallback)(m_mouseX,m_mouseY); + // if (m_mouseMoveCallback) + // (*m_mouseMoveCallback)(m_mouseX,m_mouseY); - }]; + // }]; //see http://stackoverflow.com/questions/8238473/cant-get-nsmousemoved-events-from-nexteventmatchingmask-with-an-nsopenglview ProcessSerialNumber psn;