From 180e504d3a8fd7ec5410a4541ef6607c278edc1a Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Tue, 4 Oct 2011 19:13:58 +0000 Subject: [PATCH] Upgrade for iOS 5 GSEvent. --- Tweak.mm | 9 +++++++-- control | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Tweak.mm b/Tweak.mm index 5902a78..ff6118d 100644 --- a/Tweak.mm +++ b/Tweak.mm @@ -409,7 +409,10 @@ static void VNCPointer(int buttons, int x, int y, rfbClientPtr client) { event.data.info.handInfo.x34 = 0x1; event.data.info.handInfo.x38 = tis ? 0x1 : 0x0; - event.data.info.pathPositions = 1; + if (Level_ < 3) + event.data.info.pathPositions = 1; + else + event.data.info.x52 = 1; event.data.path.x00 = 0x01; event.data.path.x01 = 0x02; @@ -763,7 +766,9 @@ MSInitialize { PurpleAllocated = true; } - if (dlsym(RTLD_DEFAULT, "GSKeyboardCreate") != NULL) + if (dlsym(RTLD_DEFAULT, "GSLibraryCopyGenerationInfoValueForKey") != NULL) + Level_ = 3; + else if (dlsym(RTLD_DEFAULT, "GSKeyboardCreate") != NULL) Level_ = 2; else if (dlsym(RTLD_DEFAULT, "GSEventGetWindowContextId") != NULL) Level_ = 1; diff --git a/control b/control index f6878db..8204648 100644 --- a/control +++ b/control @@ -5,7 +5,7 @@ Priority: optional Section: Networking Maintainer: Jay Freeman (saurik) Architecture: iphoneos-arm -Version: 0.9.3374-1 +Version: 0.9.3376-1 Description: a VNC /server/ for the iPhone Name: Veency Depends: mobilesubstrate (>= 0.9.2966-1), libvncserver, com.saurik.iphone.ske, preferenceloader, jp.ashikase.mousesupport | firmware (<< 3.0), libstatusbar | firmware (<< 4.0) -- 2.47.2