minor change

This commit is contained in:
True Zhuanjia
2024-06-20 23:32:48 +08:00
parent f09c7be18d
commit ac77447066
+2 -2
View File
@@ -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 {