From c629a1d5d58d414faf6fea225738be0a89e1016f Mon Sep 17 00:00:00 2001 From: True Zhuanjia Date: Sat, 1 Jun 2024 13:05:14 +0800 Subject: [PATCH] minor change --- Limelight/Input/NativeTouchHandler.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Limelight/Input/NativeTouchHandler.m b/Limelight/Input/NativeTouchHandler.m index 62619f15..ff347d6b 100644 --- a/Limelight/Input/NativeTouchHandler.m +++ b/Limelight/Input/NativeTouchHandler.m @@ -106,7 +106,7 @@ StreamView *streamView; + (void)populatePointerId:(UITouch*)touch{ uint64_t eventAddrValue = (uint64_t)touch; uint32_t randomPointerId = arc4random_uniform(UINT32_MAX); // generate pointerId from eletronic noise. - while(true){ + for(;;){ if([pointerIdSet containsObject:@(randomPointerId)]) randomPointerId = arc4random_uniform(UINT32_MAX); // in case of new pointerId collides with existing ones, generate again. else{ // populate pointerId into NSDict & NSSet. [pointerIdDict setObject:@(randomPointerId) forKey:@(eventAddrValue)];