Refactor related codes to NativeTouchHandler

This commit is contained in:
True Zhuanjia committed 2024-05-15 11:35:51 +08:00
1 parent 82de44df54
commit 208688afe1
6 files changed
+122 -54

No files matched your search

+27
View File
@@ -0,0 +1,27 @@
//
// NativeTouchHandler.h
// Moonlight
//
// Created by ZWM on 2024/5/14.
// Copyright © 2024 Moonlight Game Streaming Project. All rights reserved.
//
#import "StreamView.h"
NS_ASSUME_NONNULL_BEGIN
@interface NativeTouchHandler : UIResponder
+ (NSMutableDictionary* )initializePointerIdDict;
+ (NSMutableSet* )initializePointerIdSet;
+ (void)populatePointerId:(UITouch*)event;
+ (void)removePointerId:(UITouch*)event;
+ (uint32_t) retrievePointerIdFromDict:(UITouch*)event;
-(id)initWithView:(StreamView*)view;
@end
NS_ASSUME_NONNULL_END