swift call obj-c test
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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];
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -3,3 +3,5 @@
|
||||
//
|
||||
|
||||
#include <Limelight.h>
|
||||
#import "OnScreenControls.h"
|
||||
#import "RelativeTouchHandler.h"
|
||||
|
||||
Reference in New Issue
Block a user