#include <mach/mach_port.h>
#include <sys/mman.h>
+#include <sys/sysctl.h>
#import <QuartzCore/CAWindowServer.h>
#import <QuartzCore/CAWindowServerDisplay.h>
}
}
+static bool iPad1_;
+
static void VNCPointer(int buttons, int x, int y, rfbClientPtr client) {
if (ratio_ == 0)
return;
int t(x);
x = height_ / ratio_ - 1 - y;
y = t;
+
+ if (!iPad1_) {
+ x = height_ - x;
+ y = width_ - y;
+ }
}
x_ = x; y_ = y;
else
Level_ = 0;
+ size_t size;
+ sysctlbyname("hw.machine", NULL, &size, NULL, 0);
+ char machine[size];
+ sysctlbyname("hw.machine", machine, &size, NULL, 0);
+ iPad1_ = strcmp(machine, "iPad1,1") == 0;
+
dlset($GSEventCreateKeyEvent, "GSEventCreateKeyEvent");
dlset($GSCreateSyntheticKeyEvent, "_GSCreateSyntheticKeyEvent");
dlset($IOMobileFramebufferIsMainDisplay, "IOMobileFramebufferIsMainDisplay");
Section: Networking
Maintainer: Jay Freeman (saurik) <saurik@saurik.com>
Architecture: iphoneos-arm
-Version: 0.9.3345-1
+Version: 0.9.3374-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)