} data;
};
+static void VNCPointerOld(int buttons, int x, int y, CGPoint location, int diff, bool twas, bool tis);
+static void VNCPointerNew(int buttons, int x, int y, CGPoint location, int diff, bool twas, bool tis);
+
static void VNCPointer(int buttons, int x, int y, rfbClientPtr client) {
if (ratio_ == 0)
return;
return;
}
+ if (kCFCoreFoundationVersionNumber >= 800)
+ return VNCPointerNew(buttons, x, y, location, diff, twas, tis);
+ else
+ return VNCPointerOld(buttons, x, y, location, diff, twas, tis);
+}
+
+static void VNCPointerOld(int buttons, int x, int y, CGPoint location, int diff, bool twas, bool tis) {
mach_port_t purple(0);
if ((diff & 0x10) != 0) {
mach_port_deallocate(mach_task_self(), purple);
}
+static void VNCPointerNew(int buttons, int x, int y, CGPoint location, int diff, bool twas, bool tis) {
+}
+
GSEventRef (*$GSEventCreateKeyEvent)(int, CGPoint, CFStringRef, CFStringRef, id, UniChar, short, short);
GSEventRef (*$GSCreateSyntheticKeyEvent)(UniChar, BOOL, BOOL);