diff options
author | Jay Freeman <saurik@saurik.com> | 2008-07-25 09:26:14 +0000 |
---|---|---|
committer | Jay Freeman <saurik@saurik.com> | 2008-07-25 09:26:14 +0000 |
commit | 20f26db464e776037f306dfc15a7450f93b553d0 (patch) | |
tree | 82e61fb2d3fd04ed05f59d980100468219325a72 /data/mobileterminal | |
parent | 25f683b0bfb3fd034c9f3c13a0cba5da7ce3c379 (diff) |
Fixed some of the mouse support for MobileTerminal.
git-svn-id: http://svn.telesphoreo.org/trunk@391 514c082c-b64e-11dc-b46d-3d985efe055d
Diffstat (limited to 'data/mobileterminal')
-rw-r--r-- | data/mobileterminal/port.diff | 47 |
1 files changed, 20 insertions, 27 deletions
diff --git a/data/mobileterminal/port.diff b/data/mobileterminal/port.diff index 390d620c0..59981092d 100644 --- a/data/mobileterminal/port.diff +++ b/data/mobileterminal/port.diff @@ -1,36 +1,29 @@ +diff -ru mobileterminal-286/main.m mobileterminal-286+iPhone/main.m +--- mobileterminal-286/main.m 2008-05-07 08:07:55.000000000 +0000 ++++ mobileterminal-286+iPhone/main.m 2008-07-25 09:22:12.000000000 +0000 +@@ -3,6 +3,8 @@ + #import "MobileTerminal.h" + #import "Settings.h" + ++void UIApplicationUseLegacyEvents(BOOL use); ++ + int main(int argc, char **argv) + { + [[NSAutoreleasePool alloc] init]; +@@ -27,5 +29,6 @@ + [[Settings sharedInstance] setArguments:args]; + } + ++ UIApplicationUseLegacyEvents(1); + return UIApplicationMain(argc, argv, [MobileTerminal class]); + } diff -r -u mobileterminal-286/GestureView.m mobileterminal-286+iPhone/GestureView.m --- mobileterminal-286/GestureView.m 2008-05-07 08:33:09.000000000 +0000 +++ mobileterminal-286+iPhone/GestureView.m 2008-07-06 19:51:22.000000000 +0000 -@@ -13,6 +13,11 @@ - #import "Tools.h" - #include <math.h> - -+@protocol UITouchCompatibility -+- (CGPoint)locationInView:(UIView *)view; -+- (CGPoint)previousLocationInView:(UIView *)view; -+@end -+ - @implementation GestureView +@@ -77,9 +82,9 @@ //_______________________________________________________________________________ -@@ -77,9 +82,23 @@ - //_______________________________________________________________________________ - -+- (BOOL)beginTrackingWithTouch:(id)touch withEvent:(id)event { -+ return [self beginTrackingAt:[touch locationInView:self] withEvent:event]; -+} -+ -+- (BOOL)continueTrackingWithTouch:(id)touch withEvent:(id)event { -+ return [self continueTrackingAt:[touch locationInView:self] previous:[touch previousLocationInView:self] withEvent:event]; -+} -+ -+- (void)endTrackingWithTouch:(id)touch withEvent:(id)event { -+ return [self endTrackingAt:[touch locationInView:self] previous:[touch previousLocationInView:self] withEvent:event]; -+} -+ -+//_______________________________________________________________________________ -+ - (void) mouseDown:(GSEvent*)event { - mouseDownPos = [delegate viewPointForWindowPoint:GSEventGetLocationInWindow(event)]; |