]> git.saurik.com Git - veency.git/commitdiff
Upgrade for iOS 5 GSEvent.
authorJay Freeman (saurik) <saurik@saurik.com>
Tue, 4 Oct 2011 19:13:58 +0000 (19:13 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Tue, 4 Oct 2011 19:13:58 +0000 (19:13 +0000)
Tweak.mm
control

index 5902a7823b969a2f40a9fdf5a908b2f262cc802b..ff6118d205f6c405701b7e212a82251044808394 100644 (file)
--- 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 f6878db38d5bea3b58c1b74f444a6aa8b22ec070..8204648a49590f7b627c3a47e9c60db253ee5fd9 100644 (file)
--- a/control
+++ b/control
@@ -5,7 +5,7 @@ Priority: optional
 Section: Networking
 Maintainer: Jay Freeman (saurik) <saurik@saurik.com>
 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)