mach_port_deallocate(mach_task_self(), purple);
}
+static void VNCSetSender(IOHIDEventRef event) {
+ IOHIDEventSetSenderID(event, 0xDEFACEDBEEFFECE5);
+}
+
static void VNCSendHIDEvent(IOHIDEventRef event) {
static IOHIDEventSystemClientRef client_(NULL);
if (client_ == NULL)
client_ = IOHIDEventSystemClientCreate(kCFAllocatorDefault);
- IOHIDEventSetSenderID(event, 0xDEFACEDBEEFFECE5);
+ VNCSetSender(event);
IOHIDEventSystemClientDispatchEvent(client_, event);
CFRelease(event);
}