From ac77447066f87b30d39784f6b25bb1ff4533eb0c Mon Sep 17 00:00:00 2001 From: True Zhuanjia Date: Thu, 20 Jun 2024 23:32:48 +0800 Subject: [PATCH] minor change --- Limelight/Input/NativeTouchHandler.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Limelight/Input/NativeTouchHandler.m b/Limelight/Input/NativeTouchHandler.m index 6c31b67b..d4d30973 100644 --- a/Limelight/Input/NativeTouchHandler.m +++ b/Limelight/Input/NativeTouchHandler.m @@ -37,7 +37,7 @@ pointerIdDict = [NSMutableDictionary dictionary]; pointerIdPool = [NSMutableSet set]; - for (uint8_t i = 0; i < 10; i++) { //ipadOS supports upto 11 finger touches + for (uint8_t i = 0; i <= 10; i++) { //ipadOS supports upto 11 finger touches [pointerIdPool addObject:@(i)]; } activePointerIds = [NSMutableSet set]; @@ -89,10 +89,10 @@ - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { for (UITouch* touch in touches){ [self populatePointerId:touch]; //generate & populate pointerId + if([activePointerIds count] > 10) return; //limit touches upto 10, since win11 support 10 touches. if(activateCoordSelector) [NativeTouchPointer populatePointerObjIntoDict:touch]; [self sendTouchEvent:touch withTouchtype:LI_TOUCH_EVENT_DOWN]; } - return; } - (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event {