[Scummvm-git-logs] scummvm master -> 4e8a6db0a2b924369963d29f4bc5ff1880a0abf5

criezy noreply at scummvm.org
Fri Oct 4 22:15:17 UTC 2024


This automated email contains information about 4 new commits which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
5603c5f7c9 IOS7: Add Apple Pencil input support
5b9c6580d3 DOCS: Add iOS Apple Pencil Input Controls
6359bd0533 IOS7: Share Apple Pencil input gestures with Touch input
4e8a6db0a2 DOCS: Update iOS Apple Pencil controls


Commit: 5603c5f7c9c193f405dca6e95dd31d96854023bc
    https://github.com/scummvm/scummvm/commit/5603c5f7c9c193f405dca6e95dd31d96854023bc
Author: Andrew Martin (andrew at andrew-m.co.uk)
Date: 2024-10-04T23:15:13+01:00

Commit Message:
IOS7: Add Apple Pencil input support

Changed paths:
    backends/platform/ios7/ios7_touch_controller.mm
    backends/platform/ios7/ios7_video.h
    backends/platform/ios7/ios7_video.mm


diff --git a/backends/platform/ios7/ios7_touch_controller.mm b/backends/platform/ios7/ios7_touch_controller.mm
index 22b52d99081..7ea49da5acc 100644
--- a/backends/platform/ios7/ios7_touch_controller.mm
+++ b/backends/platform/ios7/ios7_touch_controller.mm
@@ -49,6 +49,9 @@
 	// they are required as the Apple TV remote sends touh events
 	// but no mouse events.
 #if TARGET_OS_IOS
+	if (touch.type == UITouchTypePencil) {
+		return YES;
+	}
 	return touch != nil && touch.type == UITouchTypeDirect;
 #else
 	return YES;
diff --git a/backends/platform/ios7/ios7_video.h b/backends/platform/ios7/ios7_video.h
index 011c75ae0e0..364fa0da095 100644
--- a/backends/platform/ios7/ios7_video.h
+++ b/backends/platform/ios7/ios7_video.h
@@ -63,6 +63,8 @@ uint getSizeNextPOT(uint size);
 
 @property (nonatomic, assign) BOOL isInGame;
 @property (nonatomic, assign) UIInterfaceOrientationMask supportedScreenOrientations;
+ at property (nonatomic) NSTimeInterval pencilTouchGestureStartTime;
+ at property (nonatomic) BOOL isLongPencilTouch;
 
 - (id)initWithFrame:(struct CGRect)frame;
 
diff --git a/backends/platform/ios7/ios7_video.mm b/backends/platform/ios7/ios7_video.mm
index 7e23c0dafc9..700dc11d0c2 100644
--- a/backends/platform/ios7/ios7_video.mm
+++ b/backends/platform/ios7/ios7_video.mm
@@ -90,6 +90,8 @@ bool iOS7_fetchEvent(InternalEvent *event) {
 	UITapGestureRecognizer *twoFingerTapGesture;
 	UILongPressGestureRecognizer *oneFingerLongPressGesture;
 	UILongPressGestureRecognizer *twoFingerLongPressGesture;
+	UILongPressGestureRecognizer *pencilTouchGesture;
+	UILongPressGestureRecognizer *pencilThreeTapTouchGesture;
 	CGPoint touchesBegan;
 #endif
 }
@@ -228,6 +230,23 @@ bool iOS7_fetchEvent(InternalEvent *event) {
 	[twoFingerLongPressGesture setDelaysTouchesEnded:NO];
 	[twoFingerLongPressGesture setCancelsTouchesInView:NO];
 	[twoFingerLongPressGesture canPreventGestureRecognizer:twoFingerTapGesture];
+	
+	pencilTouchGesture = [[UILongPressGestureRecognizer alloc] initWithTarget:self action:@selector(pencilTouch:)];
+	[pencilTouchGesture setNumberOfTouchesRequired:1];
+	[pencilTouchGesture setAllowedTouchTypes:@[@(UITouchTypePencil)]];
+	[pencilTouchGesture setMinimumPressDuration:0];
+	[pencilTouchGesture setDelaysTouchesBegan:NO];
+	[pencilTouchGesture setDelaysTouchesEnded:NO];
+	[pencilTouchGesture setCancelsTouchesInView:NO];
+	
+	pencilThreeTapTouchGesture = [[UILongPressGestureRecognizer alloc] initWithTarget:self action:@selector(pencilThreeTapTouch:)];
+	[pencilThreeTapTouchGesture setNumberOfTouchesRequired:1];
+	[pencilThreeTapTouchGesture setNumberOfTapsRequired:2];
+	[pencilThreeTapTouchGesture setAllowedTouchTypes:@[@(UITouchTypePencil)]];
+	[pencilThreeTapTouchGesture setMinimumPressDuration:0];
+	[pencilThreeTapTouchGesture setDelaysTouchesBegan:NO];
+	[pencilThreeTapTouchGesture setDelaysTouchesEnded:NO];
+	[pencilThreeTapTouchGesture setCancelsTouchesInView:NO];
 
 	UIPinchGestureRecognizer *pinchKeyboard = [[UIPinchGestureRecognizer alloc] initWithTarget:self action:@selector(keyboardPinch:)];
 
@@ -299,6 +318,8 @@ bool iOS7_fetchEvent(InternalEvent *event) {
 	[self addGestureRecognizer:twoFingerTapGesture];
 	[self addGestureRecognizer:oneFingerLongPressGesture];
 	[self addGestureRecognizer:twoFingerLongPressGesture];
+	[self addGestureRecognizer:pencilTouchGesture];
+	[self addGestureRecognizer:pencilThreeTapTouchGesture];
 
 	[pinchKeyboard release];
 	[swipeRight release];
@@ -314,6 +335,8 @@ bool iOS7_fetchEvent(InternalEvent *event) {
 	[twoFingerTapGesture release];
 	[oneFingerLongPressGesture release];
 	[twoFingerLongPressGesture release];
+	[pencilTouchGesture release];
+	[pencilThreeTapTouchGesture release];
 #elif TARGET_OS_TV
 	UITapGestureRecognizer *tapUpGestureRecognizer = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(threeFingersSwipeUp:)];
 	[tapUpGestureRecognizer setAllowedPressTypes:@[@(UIPressTypeUpArrow)]];
@@ -565,6 +588,8 @@ bool iOS7_fetchEvent(InternalEvent *event) {
 	[twoFingerTapGesture setEnabled:enabled];
 	[oneFingerLongPressGesture setEnabled:enabled];
 	[twoFingerLongPressGesture setEnabled:enabled];
+	[pencilTouchGesture setEnabled:enabled];
+	[pencilThreeTapTouchGesture setEnabled:enabled];
 }
 #endif
 
@@ -647,10 +672,28 @@ bool iOS7_fetchEvent(InternalEvent *event) {
 #if TARGET_OS_IOS
 	UITouch *touch = [touches anyObject];
 	CGPoint touchesMoved = [touch locationInView:self];
-	if (touchesBegan.x != touchesMoved.x ||
-		touchesBegan.y != touchesMoved.y) {
-		[oneFingerTapGesture setState:UIGestureRecognizerStateCancelled];
-		[twoFingerTapGesture setState:UIGestureRecognizerStateCancelled];
+	int allowedPencilMovement = 10;
+	switch (touch.type) {
+		// This prevents touches automatically clicking things after
+		// moving around the screen
+		case UITouchTypePencil:
+			// Apple Pencil touches are much more precise, so this
+			// allows some pixels of movement before invalidating the gesture.
+			if (abs(touchesBegan.x - touchesMoved.x) > allowedPencilMovement ||
+				abs(touchesBegan.y - touchesMoved.y) > allowedPencilMovement) {
+				if (self.isLongPencilTouch == NO) {
+					[pencilTouchGesture setState:UIGestureRecognizerStateCancelled];
+				}
+			}
+			break;
+			
+		default:
+			if (touchesBegan.x != touchesMoved.x ||
+				touchesBegan.y != touchesMoved.y) {
+				[oneFingerTapGesture setState:UIGestureRecognizerStateCancelled];
+				[twoFingerTapGesture setState:UIGestureRecognizerStateCancelled];
+			}
+			break;
 	}
 #endif
 	for (GameController *c : _controllers) {
@@ -773,6 +816,48 @@ bool iOS7_fetchEvent(InternalEvent *event) {
 	}
 }
 
+- (void)pencilTouch:(UILongPressGestureRecognizer *)recognizer {
+	switch (recognizer.state) {
+		case UIGestureRecognizerStateBegan:
+			self.pencilTouchGestureStartTime = [NSDate timeIntervalSinceReferenceDate];
+			self.isLongPencilTouch = NO;
+			break;
+
+		case UIGestureRecognizerStateChanged:
+			if (self.isLongPencilTouch == NO) {
+				double longPressDuration = 0.5; // Seconds
+				double duration = [NSDate timeIntervalSinceReferenceDate] - self.pencilTouchGestureStartTime;
+				if (duration >= longPressDuration) {
+					self.isLongPencilTouch = YES;
+					// Long touch: Hold left mouse
+					[self addEvent:InternalEvent(kInputLongPress, UIViewLongPressStarted, 1)];
+				}
+			}
+			break;
+
+		case UIGestureRecognizerStateEnded:
+			if (self.isLongPencilTouch) {
+				// Long touch: Release left mouse
+				[self addEvent:InternalEvent(kInputLongPress, UIViewLongPressEnded, 1)];
+			}
+			else {
+				// Short touch: Click left mouse
+				[self addEvent:InternalEvent(kInputTap, kUIViewTapSingle, 1)];
+			}
+			break;
+
+		default:
+			break;
+	}
+}
+
+- (void)pencilThreeTapTouch:(UILongPressGestureRecognizer *)recognizer {
+	if (recognizer.state == UIGestureRecognizerStateBegan) {
+		// Mouse right-click
+		[self addEvent:InternalEvent(kInputTap, kUIViewTapSingle, 2)];
+	}
+}
+
 - (void)twoFingersSwipeRight:(UISwipeGestureRecognizer *)recognizer {
 	[self addEvent:InternalEvent(kInputSwipe, kUIViewSwipeRight, 2)];
 }


Commit: 5b9c6580d302455c1cb7da31f748bed5b8719be9
    https://github.com/scummvm/scummvm/commit/5b9c6580d302455c1cb7da31f748bed5b8719be9
Author: Andrew Martin (andrew at andrew-m.co.uk)
Date: 2024-10-04T23:15:13+01:00

Commit Message:
DOCS: Add iOS Apple Pencil Input Controls

Changed paths:
    doc/docportal/other_platforms/ios.rst


diff --git a/doc/docportal/other_platforms/ios.rst b/doc/docportal/other_platforms/ios.rst
index 23ee3e944bd..4768fa3bbb1 100644
--- a/doc/docportal/other_platforms/ios.rst
+++ b/doc/docportal/other_platforms/ios.rst
@@ -49,6 +49,16 @@ Controls
         Pinch gesture, Enables/disables keyboard
         Keyboard spacebar, Pause
 
+.. csv-table::
+    :widths: 40 60
+    :header-rows: 1
+    :class: controls
+
+        Apple Pencil control, Action
+        Touch, Left mouse click
+        Touch & hold for 0.5s, "Left mouse button hold and drag, such as for selection from action wheel in Curse of Monkey Island"
+        3 quick taps on screen, Right mouse click 
+
 
 Touch controls
 *******************


Commit: 6359bd05335d42cb55865e34bb616c8fcfefbc4e
    https://github.com/scummvm/scummvm/commit/6359bd05335d42cb55865e34bb616c8fcfefbc4e
Author: Andrew Martin (andrew at andrew-m.co.uk)
Date: 2024-10-04T23:15:13+01:00

Commit Message:
IOS7: Share Apple Pencil input gestures with Touch input

- Mouse left click and long click gestures are shared between
 the Pencil and regular Touch inputs.
- Mouse right click and long click have Pencil specific gestures.

Changed paths:
    backends/platform/ios7/ios7_touch_controller.mm
    backends/platform/ios7/ios7_video.h
    backends/platform/ios7/ios7_video.mm


diff --git a/backends/platform/ios7/ios7_touch_controller.mm b/backends/platform/ios7/ios7_touch_controller.mm
index 7ea49da5acc..5d6bd2bdc79 100644
--- a/backends/platform/ios7/ios7_touch_controller.mm
+++ b/backends/platform/ios7/ios7_touch_controller.mm
@@ -49,10 +49,7 @@
 	// they are required as the Apple TV remote sends touh events
 	// but no mouse events.
 #if TARGET_OS_IOS
-	if (touch.type == UITouchTypePencil) {
-		return YES;
-	}
-	return touch != nil && touch.type == UITouchTypeDirect;
+	return touch != nil && (touch.type == UITouchTypeDirect || touch.type == UITouchTypePencil);
 #else
 	return YES;
 #endif
diff --git a/backends/platform/ios7/ios7_video.h b/backends/platform/ios7/ios7_video.h
index 364fa0da095..011c75ae0e0 100644
--- a/backends/platform/ios7/ios7_video.h
+++ b/backends/platform/ios7/ios7_video.h
@@ -63,8 +63,6 @@ uint getSizeNextPOT(uint size);
 
 @property (nonatomic, assign) BOOL isInGame;
 @property (nonatomic, assign) UIInterfaceOrientationMask supportedScreenOrientations;
- at property (nonatomic) NSTimeInterval pencilTouchGestureStartTime;
- at property (nonatomic) BOOL isLongPencilTouch;
 
 - (id)initWithFrame:(struct CGRect)frame;
 
diff --git a/backends/platform/ios7/ios7_video.mm b/backends/platform/ios7/ios7_video.mm
index 700dc11d0c2..5c9d7483071 100644
--- a/backends/platform/ios7/ios7_video.mm
+++ b/backends/platform/ios7/ios7_video.mm
@@ -88,10 +88,10 @@ bool iOS7_fetchEvent(InternalEvent *event) {
 	UIButton *_toggleTouchModeButton;
 	UITapGestureRecognizer *oneFingerTapGesture;
 	UITapGestureRecognizer *twoFingerTapGesture;
+	UITapGestureRecognizer *pencilThreeTapGesture;
 	UILongPressGestureRecognizer *oneFingerLongPressGesture;
 	UILongPressGestureRecognizer *twoFingerLongPressGesture;
-	UILongPressGestureRecognizer *pencilTouchGesture;
-	UILongPressGestureRecognizer *pencilThreeTapTouchGesture;
+	UILongPressGestureRecognizer *pencilTwoTapLongTouchGesture;
 	CGPoint touchesBegan;
 #endif
 }
@@ -203,7 +203,7 @@ bool iOS7_fetchEvent(InternalEvent *event) {
 	oneFingerTapGesture = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(oneFingerTap:)];
 	[oneFingerTapGesture setNumberOfTapsRequired:1];
 	[oneFingerTapGesture setNumberOfTouchesRequired:1];
-	[oneFingerTapGesture setAllowedTouchTypes:@[@(UITouchTypeDirect)]];
+	[oneFingerTapGesture setAllowedTouchTypes:@[@(UITouchTypeDirect),@(UITouchTypePencil)]];
 	[oneFingerTapGesture setDelaysTouchesBegan:NO];
 	[oneFingerTapGesture setDelaysTouchesEnded:NO];
 
@@ -213,11 +213,18 @@ bool iOS7_fetchEvent(InternalEvent *event) {
 	[twoFingerTapGesture setAllowedTouchTypes:@[@(UITouchTypeDirect)]];
 	[twoFingerTapGesture setDelaysTouchesBegan:NO];
 	[twoFingerTapGesture setDelaysTouchesEnded:NO];
+	
+	pencilThreeTapGesture = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(pencilThreeTap:)];
+	[pencilThreeTapGesture setNumberOfTapsRequired:3];
+	[pencilThreeTapGesture setNumberOfTouchesRequired:1];
+	[pencilThreeTapGesture setAllowedTouchTypes:@[@(UITouchTypePencil)]];
+	[pencilThreeTapGesture setDelaysTouchesBegan:NO];
+	[pencilThreeTapGesture setDelaysTouchesEnded:NO];
 
 	// Default long press duration is 0.5 seconds which suits us well
 	oneFingerLongPressGesture = [[UILongPressGestureRecognizer alloc] initWithTarget:self action:@selector(oneFingerLongPress:)];
 	[oneFingerLongPressGesture setNumberOfTouchesRequired:1];
-	[oneFingerLongPressGesture setAllowedTouchTypes:@[@(UITouchTypeDirect)]];
+	[oneFingerLongPressGesture setAllowedTouchTypes:@[@(UITouchTypeDirect),@(UITouchTypePencil)]];
 	[oneFingerLongPressGesture setDelaysTouchesBegan:NO];
 	[oneFingerLongPressGesture setDelaysTouchesEnded:NO];
 	[oneFingerLongPressGesture setCancelsTouchesInView:NO];
@@ -231,22 +238,14 @@ bool iOS7_fetchEvent(InternalEvent *event) {
 	[twoFingerLongPressGesture setCancelsTouchesInView:NO];
 	[twoFingerLongPressGesture canPreventGestureRecognizer:twoFingerTapGesture];
 	
-	pencilTouchGesture = [[UILongPressGestureRecognizer alloc] initWithTarget:self action:@selector(pencilTouch:)];
-	[pencilTouchGesture setNumberOfTouchesRequired:1];
-	[pencilTouchGesture setAllowedTouchTypes:@[@(UITouchTypePencil)]];
-	[pencilTouchGesture setMinimumPressDuration:0];
-	[pencilTouchGesture setDelaysTouchesBegan:NO];
-	[pencilTouchGesture setDelaysTouchesEnded:NO];
-	[pencilTouchGesture setCancelsTouchesInView:NO];
-	
-	pencilThreeTapTouchGesture = [[UILongPressGestureRecognizer alloc] initWithTarget:self action:@selector(pencilThreeTapTouch:)];
-	[pencilThreeTapTouchGesture setNumberOfTouchesRequired:1];
-	[pencilThreeTapTouchGesture setNumberOfTapsRequired:2];
-	[pencilThreeTapTouchGesture setAllowedTouchTypes:@[@(UITouchTypePencil)]];
-	[pencilThreeTapTouchGesture setMinimumPressDuration:0];
-	[pencilThreeTapTouchGesture setDelaysTouchesBegan:NO];
-	[pencilThreeTapTouchGesture setDelaysTouchesEnded:NO];
-	[pencilThreeTapTouchGesture setCancelsTouchesInView:NO];
+	pencilTwoTapLongTouchGesture = [[UILongPressGestureRecognizer alloc] initWithTarget:self action:@selector(pencilTwoTapLongTouch:)];
+	[pencilTwoTapLongTouchGesture setNumberOfTouchesRequired:1];
+	[pencilTwoTapLongTouchGesture setNumberOfTapsRequired:2];
+	[pencilTwoTapLongTouchGesture setAllowedTouchTypes:@[@(UITouchTypePencil)]];
+	[pencilTwoTapLongTouchGesture setMinimumPressDuration:0.5];
+	[pencilTwoTapLongTouchGesture setDelaysTouchesBegan:NO];
+	[pencilTwoTapLongTouchGesture setDelaysTouchesEnded:NO];
+	[pencilTwoTapLongTouchGesture setCancelsTouchesInView:NO];
 
 	UIPinchGestureRecognizer *pinchKeyboard = [[UIPinchGestureRecognizer alloc] initWithTarget:self action:@selector(keyboardPinch:)];
 
@@ -318,8 +317,8 @@ bool iOS7_fetchEvent(InternalEvent *event) {
 	[self addGestureRecognizer:twoFingerTapGesture];
 	[self addGestureRecognizer:oneFingerLongPressGesture];
 	[self addGestureRecognizer:twoFingerLongPressGesture];
-	[self addGestureRecognizer:pencilTouchGesture];
-	[self addGestureRecognizer:pencilThreeTapTouchGesture];
+	[self addGestureRecognizer:pencilThreeTapGesture];
+	[self addGestureRecognizer:pencilTwoTapLongTouchGesture];
 
 	[pinchKeyboard release];
 	[swipeRight release];
@@ -335,8 +334,8 @@ bool iOS7_fetchEvent(InternalEvent *event) {
 	[twoFingerTapGesture release];
 	[oneFingerLongPressGesture release];
 	[twoFingerLongPressGesture release];
-	[pencilTouchGesture release];
-	[pencilThreeTapTouchGesture release];
+	[pencilThreeTapGesture release];
+	[pencilTwoTapLongTouchGesture release];
 #elif TARGET_OS_TV
 	UITapGestureRecognizer *tapUpGestureRecognizer = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(threeFingersSwipeUp:)];
 	[tapUpGestureRecognizer setAllowedPressTypes:@[@(UIPressTypeUpArrow)]];
@@ -588,8 +587,8 @@ bool iOS7_fetchEvent(InternalEvent *event) {
 	[twoFingerTapGesture setEnabled:enabled];
 	[oneFingerLongPressGesture setEnabled:enabled];
 	[twoFingerLongPressGesture setEnabled:enabled];
-	[pencilTouchGesture setEnabled:enabled];
-	[pencilThreeTapTouchGesture setEnabled:enabled];
+	[pencilThreeTapGesture setEnabled:enabled];
+	[pencilTwoTapLongTouchGesture setEnabled:enabled];
 }
 #endif
 
@@ -681,9 +680,8 @@ bool iOS7_fetchEvent(InternalEvent *event) {
 			// allows some pixels of movement before invalidating the gesture.
 			if (abs(touchesBegan.x - touchesMoved.x) > allowedPencilMovement ||
 				abs(touchesBegan.y - touchesMoved.y) > allowedPencilMovement) {
-				if (self.isLongPencilTouch == NO) {
-					[pencilTouchGesture setState:UIGestureRecognizerStateCancelled];
-				}
+				[oneFingerTapGesture setState:UIGestureRecognizerStateCancelled];
+				[pencilThreeTapGesture setState:UIGestureRecognizerStateCancelled];
 			}
 			break;
 			
@@ -800,6 +798,13 @@ bool iOS7_fetchEvent(InternalEvent *event) {
 	}
 }
 
+- (void)pencilThreeTap:(UITapGestureRecognizer *)recognizer {
+	if (recognizer.state == UIGestureRecognizerStateEnded) {
+		// Click right mouse
+		[self addEvent:InternalEvent(kInputTap, kUIViewTapSingle, 2)];
+	}
+}
+
 - (void)oneFingerLongPress:(UILongPressGestureRecognizer *)recognizer {
 	if (recognizer.state == UIGestureRecognizerStateBegan) {
 		[self addEvent:InternalEvent(kInputLongPress, UIViewLongPressStarted, 1)];
@@ -816,45 +821,13 @@ bool iOS7_fetchEvent(InternalEvent *event) {
 	}
 }
 
-- (void)pencilTouch:(UILongPressGestureRecognizer *)recognizer {
-	switch (recognizer.state) {
-		case UIGestureRecognizerStateBegan:
-			self.pencilTouchGestureStartTime = [NSDate timeIntervalSinceReferenceDate];
-			self.isLongPencilTouch = NO;
-			break;
-
-		case UIGestureRecognizerStateChanged:
-			if (self.isLongPencilTouch == NO) {
-				double longPressDuration = 0.5; // Seconds
-				double duration = [NSDate timeIntervalSinceReferenceDate] - self.pencilTouchGestureStartTime;
-				if (duration >= longPressDuration) {
-					self.isLongPencilTouch = YES;
-					// Long touch: Hold left mouse
-					[self addEvent:InternalEvent(kInputLongPress, UIViewLongPressStarted, 1)];
-				}
-			}
-			break;
-
-		case UIGestureRecognizerStateEnded:
-			if (self.isLongPencilTouch) {
-				// Long touch: Release left mouse
-				[self addEvent:InternalEvent(kInputLongPress, UIViewLongPressEnded, 1)];
-			}
-			else {
-				// Short touch: Click left mouse
-				[self addEvent:InternalEvent(kInputTap, kUIViewTapSingle, 1)];
-			}
-			break;
-
-		default:
-			break;
-	}
-}
-
-- (void)pencilThreeTapTouch:(UILongPressGestureRecognizer *)recognizer {
+- (void)pencilTwoTapLongTouch:(UITapGestureRecognizer *)recognizer {
 	if (recognizer.state == UIGestureRecognizerStateBegan) {
-		// Mouse right-click
-		[self addEvent:InternalEvent(kInputTap, kUIViewTapSingle, 2)];
+		// Hold right mouse
+		[self addEvent:InternalEvent(kInputLongPress, UIViewLongPressStarted, 2)];
+	} else if (recognizer.state == UIGestureRecognizerStateEnded) {
+		// Release right mouse
+		[self addEvent:InternalEvent(kInputLongPress, UIViewLongPressEnded, 2)];
 	}
 }
 


Commit: 4e8a6db0a2b924369963d29f4bc5ff1880a0abf5
    https://github.com/scummvm/scummvm/commit/4e8a6db0a2b924369963d29f4bc5ff1880a0abf5
Author: Andrew Martin (andrew at andrew-m.co.uk)
Date: 2024-10-04T23:15:13+01:00

Commit Message:
DOCS: Update iOS Apple Pencil controls

Changed paths:
    doc/docportal/other_platforms/ios.rst


diff --git a/doc/docportal/other_platforms/ios.rst b/doc/docportal/other_platforms/ios.rst
index 4768fa3bbb1..27c5dacd3b3 100644
--- a/doc/docportal/other_platforms/ios.rst
+++ b/doc/docportal/other_platforms/ios.rst
@@ -56,8 +56,9 @@ Controls
 
         Apple Pencil control, Action
         Touch, Left mouse click
-        Touch & hold for 0.5s, "Left mouse button hold and drag, such as for selection from action wheel in Curse of Monkey Island"
-        3 quick taps on screen, Right mouse click 
+        Touch & hold for >0.5s, "Left mouse button hold and drag, such as for selection from action wheel in Curse of Monkey Island"
+        3 quick touches, Right mouse click 
+        3 quick touches & hold for >0.5s, "Right mouse button hold and drag, such as for selection from action wheel in Tony Tough"
 
 
 Touch controls




More information about the Scummvm-git-logs mailing list