From b02fe60b005a3e9c719f23d4aee7c41833bdba8f Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Mon, 27 Jan 2014 09:56:39 -0800 Subject: [PATCH] I had expected a compile error at some point :/. --- Tweak.mm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Tweak.mm b/Tweak.mm index 1b99b5b..04f9b01 100644 --- a/Tweak.mm +++ b/Tweak.mm @@ -52,6 +52,10 @@ extern "C" { #include "SpringBoardAccess.h" } +typedef CFTypeRef IOHIDEventRef; +typedef CFTypeRef IOHIDEventSystemClientRef; +typedef CFTypeRef IOHIDEventSystemConnectionRef; + MSClassHook(BKAccessibility) MSClassHook(UIApplication) @@ -95,7 +99,7 @@ MSClassHook(UIApplication) @end @interface BKHIDClientConnectionManager : NSObject -- () clientForTaskPort:(mach_port_t)port; +- (IOHIDEventSystemConnectionRef) clientForTaskPort:(mach_port_t)port; @end @interface BKAccessibility : NSObject @@ -138,10 +142,6 @@ extern "C" kern_return_t IOMobileFramebufferSwapSetLayer( extern "C" void IOMobileFramebufferGetDisplaySize(IOMobileFramebufferRef connect, CGSize *size); extern "C" void IOMobileFramebufferIsMainDisplay(IOMobileFramebufferRef connect, int *main); -typedef CFTypeRef IOHIDEventRef; -typedef CFTypeRef IOHIDEventSystemClientRef; -typedef CFTypeRef IOHIDEventSystemConnectionRef; - extern "C" { IOHIDEventRef IOHIDEventCreateKeyboardEvent(CFAllocatorRef allocator, uint64_t time, uint16_t page, uint16_t usage, Boolean down, IOHIDEventOptionBits flags); -- 2.47.2