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 {