コード例 #1
0
ファイル: CGEvent.cs プロジェクト: tondat/xamarin-macios
        public static void Post(CGEvent evt, CGEventTapLocation location)
        {
            if (evt == null)
            {
                throw new ArgumentNullException("evt");
            }

            CGEventPost(location, evt.Handle);
        }
コード例 #2
0
ファイル: CGEvent.cs プロジェクト: tondat/xamarin-macios
        public static void PostToPSN(CGEvent evt, IntPtr processSerialNumber)
        {
            if (evt == null)
            {
                throw new ArgumentNullException("evt");
            }

            CGEventPostToPSN(processSerialNumber, evt.Handle);
        }
コード例 #3
0
ファイル: CGEvent.cs プロジェクト: tondat/xamarin-macios
        public static void TapPostEven(IntPtr tapProxyEvent, CGEvent evt)
        {
            if (evt == null)
            {
                throw new ArgumentNullException("evt");
            }

            CGEventTapPostEvent(tapProxyEvent, evt.Handle);
        }