minor change
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user