-1
そのXcodeプロジェクトです。 CoreGraphicsをBuilding Phases-> Link Binary with Librariesにリンクしました。'CGEventSourceCreate'への呼び出しで一致する関数がありません
私のcppファイルのコンパイルエラーです。 私は 'Jump to Definition'でCoreGraphics-> CGEventSource.hにあります。
「CGEventSource.h」をインクルードすると、CGEventSource.hが見つかりません。
どうすればよいですか?
する#include私は –
それを含めたここでエラーコードです: –
mouseEventLeftDragged = CGEventCreateMouseEvent(CGEventSourceCreate(NULL)、 eventTypeLeftDragged、 mouseCursorPosition、 kCGMouseButtonLeftは) ; CGEventSetType(mouseEventLeftDragged、kCGEventLeftMouseDragged); // Apple Bugを修正する CGEventPost(kCGSessionEventTap、mouseEventLeftDragged); draggingLeftButton = true; –