Ejemplo n.º 1
0
        internal static NSPoint EventGetLocation(CGEventRef @event)
        {
            NSPoint r = new NSPoint();

            unsafe {
                if (IntPtr.Size == 4)
                {
                    NSPointF pf = EventGetLocationF(@event);
                    r.X.Value = *(IntPtr *)&pf.X;
                    r.Y.Value = *(IntPtr *)&pf.Y;
                }
                else
                {
                    NSPointD pd = EventGetLocationD(@event);
                    r.X.Value = *(IntPtr *)&pd.X;
                    r.Y.Value = *(IntPtr *)&pd.Y;
                }
            }

            return(r);
        }
Ejemplo n.º 2
0
 internal static extern Carbon.HIPoint EventGetLocation(CGEventRef @event);
Ejemplo n.º 3
0
 internal static extern int EventGetIntegerValueField(
     CGEventRef @event,
     CGEventField field);
Ejemplo n.º 4
0
 internal static extern double EventGetDoubleValueField(
     CGEventRef @event,
     CGEventField field);
Ejemplo n.º 5
0
 public extern static CGEventRef CGEventPost(CGEventTapLocation tap, CGEventRef eventRef);
Ejemplo n.º 6
0
 public extern static CGPoint CGEventGetLocation(CGEventRef eventRef);
Ejemplo n.º 7
0
 internal static extern NSPointD EventGetLocationD(CGEventRef @event);
Ejemplo n.º 8
0
 internal static extern NSPointF EventGetLocationF(CGEventRef @event);
Ejemplo n.º 9
0
 internal static extern int EventGetIntegerValueField(
     CGEventRef @event,
     CGEventField field);
Ejemplo n.º 10
0
 internal static extern double EventGetDoubleValueField(
     CGEventRef @event,
     CGEventField field);
Ejemplo n.º 11
0
 internal static extern void EventSetIntegerValueField(
     CGEventRef @event,
     CGEventField field, int value);
Ejemplo n.º 12
0
 internal static extern CGEventFlags CGEventGetFlags(CGEventRef @event);
Ejemplo n.º 13
0
 internal static extern void CGEventSetFlags(CGEventRef @event, CGEventFlags flags);
Ejemplo n.º 14
0
 internal static extern void CGEventPost(CGEventTapLocation tap, CGEventRef @event);
Ejemplo n.º 15
0
 internal static extern Carbon.HIPoint EventGetLocation(CGEventRef @event);