swift call obj-c test

This commit is contained in:
TrueZhuangjia
2024-11-22 22:00:25 +08:00
parent 33a8e02c5f
commit 777c825cca
6 changed files with 15 additions and 0 deletions
+3
View File
@@ -209,6 +209,9 @@ import UIKit
super.touchesBegan(touches, with: event)
//self.backgroundColor = UIColor(red: 0.0, green: 0.0, blue: 1.0, alpha: 0.7)
OnScreenControls.testMethod();
RelativeTouchHandler.testMethod();
if !OnScreenButtonView.editMode {
// self.backgroundColor = UIColor.systemBlue.withAlphaComponent(0.7)
self.buttonDownVisualEffect()
+1
View File
@@ -93,6 +93,7 @@ typedef NS_ENUM(NSInteger, OnScreenControlsLevel) {
+ (NSMutableSet* )touchAddrsCapturedByOnScreenControls;
+ (void) testMethod;
- (id) initWithView:(UIView*)view controllerSup:(ControllerSupport*)controllerSupport streamConfig:(StreamConfiguration*)streamConfig;
- (BOOL) handleTouchDownEvent:(NSSet*)touches;
- (BOOL) handleTouchUpEvent:(NSSet*)touches;
+4
View File
@@ -142,6 +142,10 @@ static float L3_Y;
return touchAddrsCapturedByOnScreenControls;
}
+ (void) testMethod{
NSLog(@"swift calling test");
}
- (id) initWithView:(UIView*)view controllerSup:(ControllerSupport*)controllerSupport streamConfig:(StreamConfiguration*)streamConfig {
self = [self init];
+1
View File
@@ -18,6 +18,7 @@ NS_ASSUME_NONNULL_BEGIN
@property (nonatomic, readonly) CustomTapGestureRecognizer* mouseRightClickTapRecognizer; // this object will be passed to onscreencontrol class for areVirtualControllerTaps flag setting
+ (void) testMethod;
- (id)initWithView:(StreamView*)view andSettings:(TemporarySettings*)settings;
@end
+4
View File
@@ -42,6 +42,10 @@ static const float QUICK_TAP_TIME_INTERVAL = 0.2;
StreamView* streamView;
}
+ (void) testMethod{
NSLog(@"swift calling test 666");
}
- (id)initWithView:(StreamView*)view andSettings:(TemporarySettings*)settings {
self = [self init];
self->streamView = view;
+2
View File
@@ -3,3 +3,5 @@
//
#include <Limelight.h>
#import "OnScreenControls.h"
#import "RelativeTouchHandler.h"