MouseMessageTypeSetEnabled
} MouseMessageType;
-static void AshikaseSetEnabled(bool enabled, bool always) {
- if (!Ashikase(always))
- return;
-
- CFMessagePortSendRequest(ashikase_, MouseMessageTypeSetEnabled, cursor_ ? cfTrue_ : cfFalse_, 0, 0, NULL, NULL);
-}
-
-static bool AshikaseSendEvent(float x, float y, int buttons = 0) {
- if (!Ashikase(false))
- return false;
-
+static void AshikaseSendEvent(float x, float y, int buttons = 0) {
event_.x = x;
event_.y = y;
event_.buttons = buttons;
event_.absolute = true;
CFMessagePortSendRequest(ashikase_, MouseMessageTypeEvent, cfEvent_, 0, 0, NULL, NULL);
+}
- return true;
+static void AshikaseSetEnabled(bool enabled, bool always) {
+ if (!Ashikase(always))
+ return;
+
+ CFMessagePortSendRequest(ashikase_, MouseMessageTypeSetEnabled, enabled ? cfTrue_ : cfFalse_, 0, 0, NULL, NULL);
+
+ if (enabled)
+ AshikaseSendEvent(x_, y_);
}
MSClassHook(SBAlertItemsController)
NSNumber *cursor = [settings objectForKey:@"ShowCursor"];
cursor_ = cursor == nil ? true : [cursor boolValue];
- if (clients_ != 0) {
+ if (clients_ != 0)
AshikaseSetEnabled(cursor_, true);
- AshikaseSendEvent(x_, y_);
- }
}
}
rfbDefaultPtrAddEvent(buttons, x, y, client);
- if (AshikaseSendEvent(x, y, buttons))
+ if (Ashikase(false)) {
+ AshikaseSendEvent(x, y, buttons);
return;
+ }
mach_port_t purple(0);
Section: Networking
Maintainer: Jay Freeman (saurik) <saurik@saurik.com>
Architecture: iphoneos-arm
-Version: 0.9.3143-1
+Version: 0.9.3144-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)