allow to compile using gcc-4.x on Mac OSX
This commit is contained in:
@@ -374,8 +374,8 @@ void MacOpenGLWindow::createWindow(const b3gWindowConstructionInfo& ci)
|
|||||||
|
|
||||||
// [NSEvent addGlobalMonitorForEventsMatchingMask:NSMouseMovedMask];
|
// [NSEvent addGlobalMonitorForEventsMatchingMask:NSMouseMovedMask];
|
||||||
|
|
||||||
[NSEvent addGlobalMonitorForEventsMatchingMask:NSMouseMovedMask handler:^(NSEvent *event)
|
// [NSEvent addGlobalMonitorForEventsMatchingMask:NSMouseMovedMask handler:^(NSEvent *event)
|
||||||
{
|
// {
|
||||||
//[window setFrameOrigin:[NSEvent mouseLocation]];
|
//[window setFrameOrigin:[NSEvent mouseLocation]];
|
||||||
// NSPoint eventLocation = [m_internalData->m_window mouseLocationOutsideOfEventStream];
|
// 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);
|
// printf("mouse coord = %f, %f\n",m_mouseX,m_mouseY);
|
||||||
if (m_mouseMoveCallback)
|
// if (m_mouseMoveCallback)
|
||||||
(*m_mouseMoveCallback)(m_mouseX,m_mouseY);
|
// (*m_mouseMoveCallback)(m_mouseX,m_mouseY);
|
||||||
|
|
||||||
}];
|
// }];
|
||||||
|
|
||||||
//see http://stackoverflow.com/questions/8238473/cant-get-nsmousemoved-events-from-nexteventmatchingmask-with-an-nsopenglview
|
//see http://stackoverflow.com/questions/8238473/cant-get-nsmousemoved-events-from-nexteventmatchingmask-with-an-nsopenglview
|
||||||
ProcessSerialNumber psn;
|
ProcessSerialNumber psn;
|
||||||
|
|||||||
Reference in New Issue
Block a user