swift call obj-c test
This commit is contained in:
1 parent
33a8e02c5f
commit
777c825cca
6 files changed
+15
No files matched your search
@@ -209,6 +209,9 @@ import UIKit
|
|||||||
super.touchesBegan(touches, with: event)
|
super.touchesBegan(touches, with: event)
|
||||||
//self.backgroundColor = UIColor(red: 0.0, green: 0.0, blue: 1.0, alpha: 0.7)
|
//self.backgroundColor = UIColor(red: 0.0, green: 0.0, blue: 1.0, alpha: 0.7)
|
||||||
|
|
||||||
|
OnScreenControls.testMethod();
|
||||||
|
RelativeTouchHandler.testMethod();
|
||||||
|
|
||||||
if !OnScreenButtonView.editMode {
|
if !OnScreenButtonView.editMode {
|
||||||
// self.backgroundColor = UIColor.systemBlue.withAlphaComponent(0.7)
|
// self.backgroundColor = UIColor.systemBlue.withAlphaComponent(0.7)
|
||||||
self.buttonDownVisualEffect()
|
self.buttonDownVisualEffect()
|
||||||
|
|||||||
@@ -93,6 +93,7 @@ typedef NS_ENUM(NSInteger, OnScreenControlsLevel) {
|
|||||||
|
|
||||||
|
|
||||||
+ (NSMutableSet* )touchAddrsCapturedByOnScreenControls;
|
+ (NSMutableSet* )touchAddrsCapturedByOnScreenControls;
|
||||||
|
+ (void) testMethod;
|
||||||
- (id) initWithView:(UIView*)view controllerSup:(ControllerSupport*)controllerSupport streamConfig:(StreamConfiguration*)streamConfig;
|
- (id) initWithView:(UIView*)view controllerSup:(ControllerSupport*)controllerSupport streamConfig:(StreamConfiguration*)streamConfig;
|
||||||
- (BOOL) handleTouchDownEvent:(NSSet*)touches;
|
- (BOOL) handleTouchDownEvent:(NSSet*)touches;
|
||||||
- (BOOL) handleTouchUpEvent:(NSSet*)touches;
|
- (BOOL) handleTouchUpEvent:(NSSet*)touches;
|
||||||
|
|||||||
@@ -142,6 +142,10 @@ static float L3_Y;
|
|||||||
return touchAddrsCapturedByOnScreenControls;
|
return touchAddrsCapturedByOnScreenControls;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
+ (void) testMethod{
|
||||||
|
NSLog(@"swift calling test");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
- (id) initWithView:(UIView*)view controllerSup:(ControllerSupport*)controllerSupport streamConfig:(StreamConfiguration*)streamConfig {
|
- (id) initWithView:(UIView*)view controllerSup:(ControllerSupport*)controllerSupport streamConfig:(StreamConfiguration*)streamConfig {
|
||||||
self = [self init];
|
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
|
@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;
|
- (id)initWithView:(StreamView*)view andSettings:(TemporarySettings*)settings;
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|||||||
@@ -42,6 +42,10 @@ static const float QUICK_TAP_TIME_INTERVAL = 0.2;
|
|||||||
StreamView* streamView;
|
StreamView* streamView;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
+ (void) testMethod{
|
||||||
|
NSLog(@"swift calling test 666");
|
||||||
|
}
|
||||||
|
|
||||||
- (id)initWithView:(StreamView*)view andSettings:(TemporarySettings*)settings {
|
- (id)initWithView:(StreamView*)view andSettings:(TemporarySettings*)settings {
|
||||||
self = [self init];
|
self = [self init];
|
||||||
self->streamView = view;
|
self->streamView = view;
|
||||||
|
|||||||
@@ -3,3 +3,5 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
#include <Limelight.h>
|
#include <Limelight.h>
|
||||||
|
#import "OnScreenControls.h"
|
||||||
|
#import "RelativeTouchHandler.h"
|
||||||
Reference in new issue
Block a user