make OSC + native touch works

This commit is contained in:
True Zhuanjia committed 2024-08-17 18:59:54 +08:00
1 parent 6b25de1361
commit 29e43979a7
5 files changed
+62 -20

No files matched your search

+3
View File
@@ -35,6 +35,7 @@ typedef NS_ENUM(NSInteger, OnScreenControlsLevel) {
// @property (nonatomic, assign) CustomTapGestureRecognizer* mouseRightClickTapRecognizer; // this object will be passed to onscreencontrols class for areVirtualControllerTaps flag setting
@property (nonatomic, assign) bool isLayingOut;
//@property (nonatomic) NSMutableSet<UITouch* >* touchesCapturedByOnScreenButtons;
@property CALayer* _aButton;
@property CALayer* _bButton;
@property CALayer* _xButton;
@@ -64,6 +65,8 @@ typedef NS_ENUM(NSInteger, OnScreenControlsLevel) {
@property NSMutableArray *OSCButtonLayers;
+ (NSMutableSet* )touchAddrsCapturedByOnScreenControls;
- (id) initWithView:(UIView*)view controllerSup:(ControllerSupport*)controllerSupport streamConfig:(StreamConfiguration*)streamConfig;
- (BOOL) handleTouchDownEvent:(NSSet*)touches;
- (BOOL) handleTouchUpEvent:(NSSet*)touches;