1

このエラーが発生し、問題が何であるかを理解できません。エラーは次のとおりです。kCGWindowBound<---呼び出されたオブジェクトタイプ'CFStringRef'(別名'const_CFString *')は、OSX10.7.4の関数または関数ポインタXcode4.3.3ではありません

void MacMouse::_initialize(){   
mState.clear();     
mTempState.clear();     
mMouseWarped = false; 
// Hide OS Mouse
    CGDisplayHideCursor(kCGDirectMainDisplay);

    MacInputManager* im = static_cast<MacInputManager*>(mCreator);
    WindowRef win = im->_getWindow();

    if(win)
    {
        Rect clipRect = {0.0f, 0.0f, 0.0f, 0.0f};
        kCGWindowBounds(win, kWindowContentRgn, &clipRect);

        CGPoint warpPoint;
        warpPoint.x = ((clipRect.right - clipRect.left) / 2) + clipRect.left;
        warpPoint.y = ((clipRect.bottom - clipRect.top) / 2) + clipRect.top;
        CGDisplayMoveCursorToPoint(kCGDirectMainDisplay, warpPoint); //Place at display origin

        mMouseWarped = true;
    }

    //Now that mouse is warped, start listening for events
    EventTargetRef event = ((MacInputManager*)mCreator)->_getEventTarget();

    if(mouseEventRef != NULL)
        RemoveEventHandler(mouseEventRef);

    if(mWindowFocusHandler != NULL)
        RemoveEventHandler(mWindowFocusHandler);

    mouseEventRef = mWindowFocusHandler = NULL;

    if(InstallEventHandler(event, mouseUPP, GetEventTypeCount(mouseEvents), mouseEvents, this, &mouseEventRef) != noErr)
        OIS_EXCEPT( E_General, "MacMouse::_initialize >> Error loading Mouse event handler" );

    if(InstallEventHandler(event, mWindowFocusListener, GetEventTypeCount(WinFocusAcquired), WinFocusAcquired, this, &mWindowFocusHandler) != noErr)
        OIS_EXCEPT( E_General, "MacMouse::_initialize >> Error loading Mouse event handler" );      

    //Lock OS Mouse movement
    mNeedsToRegainFocus = false;
    CGAssociateMouseAndMouseCursorPosition(FALSE);
}
4

0 に答える 0