minor change
This commit is contained in:
1 parent
f09c7be18d
commit
ac77447066
1 file changed
+2
-2
@@ -37,7 +37,7 @@
|
|||||||
|
|
||||||
pointerIdDict = [NSMutableDictionary dictionary];
|
pointerIdDict = [NSMutableDictionary dictionary];
|
||||||
pointerIdPool = [NSMutableSet set];
|
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)];
|
[pointerIdPool addObject:@(i)];
|
||||||
}
|
}
|
||||||
activePointerIds = [NSMutableSet set];
|
activePointerIds = [NSMutableSet set];
|
||||||
@@ -89,10 +89,10 @@
|
|||||||
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
|
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
|
||||||
for (UITouch* touch in touches){
|
for (UITouch* touch in touches){
|
||||||
[self populatePointerId:touch]; //generate & populate pointerId
|
[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];
|
if(activateCoordSelector) [NativeTouchPointer populatePointerObjIntoDict:touch];
|
||||||
[self sendTouchEvent:touch withTouchtype:LI_TOUCH_EVENT_DOWN];
|
[self sendTouchEvent:touch withTouchtype:LI_TOUCH_EVENT_DOWN];
|
||||||
}
|
}
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event {
|
- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event {
|
||||||
|
|||||||
Reference in new issue
Block a user