|
@@ -34,6 +34,260 @@
|
|
|
return resultStr;
|
|
|
}
|
|
|
|
|
|
+//#pragma -mark- 新设备控制指令
|
|
|
+//+ (NSString *)mutTapCommand500DownWithTouches:(NSArray *)touches
|
|
|
+// showImageView:(UIImageView *)showImageView
|
|
|
+// isLan:(BOOL)isLan
|
|
|
+//{
|
|
|
+// /*比列换算*/
|
|
|
+//// CGFloat ratex = (showImageView.frame.size.width > showImageView.frame.size.height)?(H_PHONE/showImageView.frame.size.width):(W_PHONE/showImageView.frame.size.width);
|
|
|
+//// CGFloat ratey = (showImageView.frame.size.height > showImageView.frame.size.width)?(H_PHONE/showImageView.frame.size.height):(W_PHONE/showImageView.frame.size.height);
|
|
|
+//// CGFloat ratex = W_PHONE/showImageView.frame.size.width;
|
|
|
+//// CGFloat ratey = H_PHONE/showImageView.frame.size.height;
|
|
|
+//
|
|
|
+// CGFloat ratex = ksharedAppDelegate.couldPhone_W_PHONE/showImageView.frame.size.width;
|
|
|
+// CGFloat ratey = ksharedAppDelegate.couldPhone_H_PHONE/showImageView.frame.size.height;
|
|
|
+//
|
|
|
+//
|
|
|
+// NSString *pointList = @"";
|
|
|
+// for (NSInteger nfori = 0;nfori < [touches count];nfori++)
|
|
|
+// {
|
|
|
+// UITouch *touch = [touches objectAtIndex:nfori];
|
|
|
+// CGPoint lastPoint = [touch locationInView:showImageView];
|
|
|
+//
|
|
|
+// /*换算后的坐标*/
|
|
|
+//// CGFloat x = lastPoint.x*ratex;
|
|
|
+//// CGFloat y = lastPoint.y*ratey;
|
|
|
+// CGFloat x = isLan?(lastPoint.y*ratey):(lastPoint.x*ratex);
|
|
|
+// CGFloat y = isLan?((showImageView.frame.size.width - lastPoint.x)*ratex):lastPoint.y*ratey;
|
|
|
+//
|
|
|
+// pointList = [pointList stringByAppendingString:[NSString stringWithFormat:@"{\"action\":%ld,\"x\":\"%f\",\"y\":\"%f\"}",(long)nfori,x,y]];
|
|
|
+// }
|
|
|
+//
|
|
|
+// pointList = [pointList stringByReplacingOccurrencesOfString:@"}{" withString:@"},{"];
|
|
|
+//
|
|
|
+// NSString *dataStr = [NSString stringWithFormat:@"{\"data\":{\"fingerList\":[%@]},\"type\":\"morePortionDown\"}",pointList];
|
|
|
+//
|
|
|
+// if (USENEWCONTROLLCOMMONDNO500)
|
|
|
+// {
|
|
|
+//// dataStr = [CommondToStr commondAppendingHeadAndEndStrWithSourStr:dataStr];
|
|
|
+// }
|
|
|
+// else
|
|
|
+// {
|
|
|
+// dataStr = [RCCommandHelp commandAppending00StringWithSourStr:dataStr];
|
|
|
+// }
|
|
|
+//
|
|
|
+// return dataStr;
|
|
|
+//}
|
|
|
+//
|
|
|
+//+ (NSString *)mutTapCommand500UpWithTouches:(NSArray *)touches
|
|
|
+// showImageView:(UIImageView *)showImageView
|
|
|
+// isLan:(BOOL)isLan
|
|
|
+//{
|
|
|
+// /*比列换算*/
|
|
|
+//// CGFloat ratex = (showImageView.frame.size.width > showImageView.frame.size.height)?(H_PHONE/showImageView.frame.size.width):(W_PHONE/showImageView.frame.size.width);
|
|
|
+//// CGFloat ratey = (showImageView.frame.size.height > showImageView.frame.size.width)?(H_PHONE/showImageView.frame.size.height):(W_PHONE/showImageView.frame.size.height);
|
|
|
+//// CGFloat ratex = W_PHONE/showImageView.frame.size.width;
|
|
|
+//// CGFloat ratey = H_PHONE/showImageView.frame.size.height;
|
|
|
+// CGFloat ratex = ksharedAppDelegate.couldPhone_W_PHONE/showImageView.frame.size.width;
|
|
|
+// CGFloat ratey = ksharedAppDelegate.couldPhone_H_PHONE/showImageView.frame.size.height;
|
|
|
+//
|
|
|
+// NSString *pointList = @"";
|
|
|
+// for (NSInteger nfori = 0;nfori < [touches count];nfori++)
|
|
|
+// {
|
|
|
+// UITouch *touch = [touches objectAtIndex:nfori];
|
|
|
+// CGPoint lastPoint = [touch locationInView:showImageView];
|
|
|
+//
|
|
|
+// /*换算后的坐标*/
|
|
|
+//// CGFloat x = lastPoint.x*ratex;
|
|
|
+//// CGFloat y = lastPoint.y*ratey;
|
|
|
+// CGFloat x = isLan?(lastPoint.y*ratey):(lastPoint.x*ratex);
|
|
|
+// CGFloat y = isLan?((showImageView.frame.size.width - lastPoint.x)*ratex):lastPoint.y*ratey;
|
|
|
+//
|
|
|
+// pointList = [pointList stringByAppendingString:[NSString stringWithFormat:@"{\"action\":%ld,\"x\":\"%f\",\"y\":\"%f\"}",(long)nfori,x,y]];
|
|
|
+// }
|
|
|
+//
|
|
|
+// pointList = [pointList stringByReplacingOccurrencesOfString:@"}{" withString:@"},{"];
|
|
|
+//
|
|
|
+// NSString *dataStr = [NSString stringWithFormat:@"{\"data\":{\"fingerList\":[%@]},\"type\":\"morePortionUp\"}",pointList];
|
|
|
+//
|
|
|
+//
|
|
|
+// if (USENEWCONTROLLCOMMONDNO500)
|
|
|
+// {
|
|
|
+//// dataStr = [self commondAppendingHeadAndEndStrWithSourStr:dataStr];
|
|
|
+// }
|
|
|
+// else
|
|
|
+// {
|
|
|
+// dataStr = [self commandAppending00StringWithSourStr:dataStr];
|
|
|
+// }
|
|
|
+//
|
|
|
+// return dataStr;
|
|
|
+//}
|
|
|
+//
|
|
|
+//+ (NSString *)mutMoveCommand500UpWithTouches:(NSArray *)touches
|
|
|
+// showImageView:(UIImageView *)showImageView
|
|
|
+// isLan:(BOOL)isLan
|
|
|
+//{
|
|
|
+// /*比列换算*/
|
|
|
+//// CGFloat ratex = (showImageView.frame.size.width > showImageView.frame.size.height)?(H_PHONE/showImageView.frame.size.width):(W_PHONE/showImageView.frame.size.width);
|
|
|
+//// CGFloat ratey = (showImageView.frame.size.height > showImageView.frame.size.width)?(H_PHONE/showImageView.frame.size.height):(W_PHONE/showImageView.frame.size.height);
|
|
|
+//// CGFloat ratex = W_PHONE/showImageView.frame.size.width;
|
|
|
+//// CGFloat ratey = H_PHONE/showImageView.frame.size.height;
|
|
|
+//
|
|
|
+// CGFloat ratex = ksharedAppDelegate.couldPhone_W_PHONE/showImageView.frame.size.width;
|
|
|
+// CGFloat ratey = ksharedAppDelegate.couldPhone_H_PHONE/showImageView.frame.size.height;
|
|
|
+//
|
|
|
+//
|
|
|
+// NSString *pointList = @"";
|
|
|
+// for (NSInteger nfori = 0;nfori < [touches count];nfori++)
|
|
|
+// {
|
|
|
+// UITouch *touch = [touches objectAtIndex:nfori];
|
|
|
+// CGPoint lastPoint = [touch locationInView:showImageView];
|
|
|
+//
|
|
|
+// /*换算后的坐标*/
|
|
|
+//// CGFloat x = lastPoint.x*ratex;
|
|
|
+//// CGFloat y = lastPoint.y*ratey;
|
|
|
+// CGFloat x = isLan?(lastPoint.y*ratey):(lastPoint.x*ratex);
|
|
|
+// CGFloat y = isLan?((showImageView.frame.size.width - lastPoint.x)*ratex):lastPoint.y*ratey;
|
|
|
+//
|
|
|
+// pointList = [pointList stringByAppendingString:[NSString stringWithFormat:@"{\"action\":0,\"x\":\"%f\",\"y\":\"%f\"}",x,y]];
|
|
|
+// }
|
|
|
+//
|
|
|
+// pointList = [pointList stringByReplacingOccurrencesOfString:@"}{" withString:@"},{"];
|
|
|
+//
|
|
|
+// NSString *dataStr = [NSString stringWithFormat:@"{\"data\":{\"fingerList\":[%@]},\"type\":\"morePortionMove\"}",pointList];
|
|
|
+//
|
|
|
+// if (USENEWCONTROLLCOMMONDNO500)
|
|
|
+// {
|
|
|
+//// dataStr = [self commondAppendingHeadAndEndStrWithSourStr:dataStr];
|
|
|
+// }
|
|
|
+// else
|
|
|
+// {
|
|
|
+// dataStr = [self commandAppending00StringWithSourStr:dataStr];
|
|
|
+// }
|
|
|
+//
|
|
|
+// return dataStr;
|
|
|
+//}
|
|
|
+//
|
|
|
+//+ (NSString *)tapDownCommandTouches:(UITouch *)touch
|
|
|
+// touchCount:(NSInteger)touchCount
|
|
|
+// showImageView:(UIImageView *)showImageView
|
|
|
+// isLan:(BOOL)isLan
|
|
|
+//{
|
|
|
+// int touchid = 0;
|
|
|
+//
|
|
|
+// if ([touch respondsToSelector:NSSelectorFromString(@"_touchIdentifier")])
|
|
|
+// {
|
|
|
+// touchid = [[touch valueForKey:@"touchIdentifier"] intValue];
|
|
|
+// }
|
|
|
+// else/*地址转int*/
|
|
|
+// {
|
|
|
+// NSString *ip = [NSString stringWithFormat:@"%p",touch];
|
|
|
+// ip = [ip substringFromIndex:2];
|
|
|
+// NSScanner* scanner = [NSScanner scannerWithString:ip];
|
|
|
+// [scanner scanInteger:&touchid];
|
|
|
+// }
|
|
|
+// CGPoint lastPoint = [touch locationInView:showImageView];
|
|
|
+//
|
|
|
+// CGFloat ratex = 0.0;
|
|
|
+// CGFloat ratey = 0.0;
|
|
|
+//
|
|
|
+// /*横屏状态下需要坐标翻转*/
|
|
|
+// if(showImageView.frame.size.width > showImageView.frame.size.height){/*横屏模式*/
|
|
|
+// ratex = ksharedAppDelegate.couldPhone_H_PHONE/showImageView.frame.size.width;
|
|
|
+// ratey = ksharedAppDelegate.couldPhone_W_PHONE/showImageView.frame.size.height;
|
|
|
+// }else{
|
|
|
+// ratex = ksharedAppDelegate.couldPhone_W_PHONE/showImageView.frame.size.width;
|
|
|
+// ratey = ksharedAppDelegate.couldPhone_H_PHONE/showImageView.frame.size.height;
|
|
|
+// }
|
|
|
+// CGFloat x = lastPoint.x*ratex;
|
|
|
+// CGFloat y = lastPoint.y*ratey;
|
|
|
+//
|
|
|
+// NSString *dataStr = [NSString stringWithFormat:@"{\"data\":{\"action\":0,\"count\":%ld,\"pointerId\":%d,\"x\":\"%.2f\",\"y\":\"%.2f\"},\"type\":\"event\"}",(long)touchCount,touchid,x,y];
|
|
|
+//
|
|
|
+// return dataStr;
|
|
|
+//}
|
|
|
+//
|
|
|
+//+ (NSString *)tapUpCommandTouches:(UITouch *)touch
|
|
|
+// touchCount:(NSInteger)touchCount
|
|
|
+// showImageView:(UIImageView *)showImageView
|
|
|
+// isLan:(BOOL)isLan
|
|
|
+//{
|
|
|
+// int touchid = 0;
|
|
|
+//
|
|
|
+// if ([touch respondsToSelector:NSSelectorFromString(@"_touchIdentifier")])
|
|
|
+// {
|
|
|
+// touchid = [[touch valueForKey:@"touchIdentifier"] intValue];
|
|
|
+// }
|
|
|
+// else/*地址转int*/
|
|
|
+// {
|
|
|
+// NSString *ip = [NSString stringWithFormat:@"%p",touch];
|
|
|
+// ip = [ip substringFromIndex:2];
|
|
|
+// NSScanner* scanner = [NSScanner scannerWithString:ip];
|
|
|
+// [scanner scanInteger:&touchid];
|
|
|
+// }
|
|
|
+//
|
|
|
+// CGFloat ratex = 0.0;
|
|
|
+// CGFloat ratey = 0.0;
|
|
|
+//
|
|
|
+// CGPoint lastPoint = [touch locationInView:showImageView];
|
|
|
+//
|
|
|
+// /*横屏状态下需要坐标翻转*/
|
|
|
+// if(showImageView.frame.size.width > showImageView.frame.size.height){/*横屏模式*/
|
|
|
+// ratex = ksharedAppDelegate.couldPhone_H_PHONE/showImageView.frame.size.width;
|
|
|
+// ratey = ksharedAppDelegate.couldPhone_W_PHONE/showImageView.frame.size.height;
|
|
|
+// }else{
|
|
|
+// ratex = ksharedAppDelegate.couldPhone_W_PHONE/showImageView.frame.size.width;
|
|
|
+// ratey = ksharedAppDelegate.couldPhone_H_PHONE/showImageView.frame.size.height;
|
|
|
+// }
|
|
|
+// CGFloat x = lastPoint.x*ratex;
|
|
|
+// CGFloat y = lastPoint.y*ratey;
|
|
|
+//
|
|
|
+// NSString *dataStr = [NSString stringWithFormat:@"{\"data\":{\"action\":1,\"count\":%ld,\"pointerId\":%d,\"x\":\"%.2f\",\"y\":\"%.2f\"},\"type\":\"event\"}",(long)touchCount,touchid,x,y];
|
|
|
+//
|
|
|
+// return dataStr;
|
|
|
+//}
|
|
|
+//
|
|
|
+//+ (NSString *)tapMoveCommandTouches:(UITouch *)touch
|
|
|
+// touchCount:(NSInteger)touchCount
|
|
|
+// showImageView:(UIImageView *)showImageView
|
|
|
+// isLan:(BOOL)isLan
|
|
|
+//{
|
|
|
+// int touchid = 0;
|
|
|
+//
|
|
|
+// if ([touch respondsToSelector:NSSelectorFromString(@"_touchIdentifier")])
|
|
|
+// {
|
|
|
+// touchid = [[touch valueForKey:@"touchIdentifier"] intValue];
|
|
|
+// }
|
|
|
+// else/*地址转int*/
|
|
|
+// {
|
|
|
+// NSString *ip = [NSString stringWithFormat:@"%p",touch];
|
|
|
+// ip = [ip substringFromIndex:2];
|
|
|
+// NSScanner* scanner = [NSScanner scannerWithString:ip];
|
|
|
+// [scanner scanInteger:&touchid];
|
|
|
+// }
|
|
|
+//
|
|
|
+// CGFloat ratex = 0.0;
|
|
|
+// CGFloat ratey = 0.0;
|
|
|
+//
|
|
|
+// CGPoint lastPoint = [touch locationInView:showImageView];
|
|
|
+//
|
|
|
+// /*横屏状态下需要坐标翻转*/
|
|
|
+// if(showImageView.frame.size.width > showImageView.frame.size.height){/*横屏模式*/
|
|
|
+// ratex = ksharedAppDelegate.couldPhone_H_PHONE/showImageView.frame.size.width;
|
|
|
+// ratey = ksharedAppDelegate.couldPhone_W_PHONE/showImageView.frame.size.height;
|
|
|
+// }else{
|
|
|
+// ratex = ksharedAppDelegate.couldPhone_W_PHONE/showImageView.frame.size.width;
|
|
|
+// ratey = ksharedAppDelegate.couldPhone_H_PHONE/showImageView.frame.size.height;
|
|
|
+// }
|
|
|
+// CGFloat x = lastPoint.x*ratex;
|
|
|
+// CGFloat y = lastPoint.y*ratey;
|
|
|
+//
|
|
|
+// NSString *dataStr = [NSString stringWithFormat:@"{\"data\":{\"action\":2,\"count\":%ld,\"pointerId\":%d,\"x\":\"%.2f\",\"y\":\"%.2f\"},\"type\":\"event\"}",(long)touchCount,touchid,x,y];
|
|
|
+//
|
|
|
+// return dataStr;
|
|
|
+//}
|
|
|
+
|
|
|
#pragma -mark- 新设备控制指令
|
|
|
+ (NSString *)mutTapCommand500DownWithTouches:(NSArray *)touches
|
|
|
showImageView:(UIImageView *)showImageView
|
|
@@ -44,6 +298,7 @@
|
|
|
// CGFloat ratey = (showImageView.frame.size.height > showImageView.frame.size.width)?(H_PHONE/showImageView.frame.size.height):(W_PHONE/showImageView.frame.size.height);
|
|
|
// CGFloat ratex = W_PHONE/showImageView.frame.size.width;
|
|
|
// CGFloat ratey = H_PHONE/showImageView.frame.size.height;
|
|
|
+
|
|
|
CGFloat ratex = ksharedAppDelegate.couldPhone_W_PHONE/showImageView.frame.size.width;
|
|
|
CGFloat ratey = ksharedAppDelegate.couldPhone_H_PHONE/showImageView.frame.size.height;
|
|
|
|
|
@@ -186,21 +441,19 @@
|
|
|
NSScanner* scanner = [NSScanner scannerWithString:ip];
|
|
|
[scanner scanInteger:&touchid];
|
|
|
}
|
|
|
- CGPoint lastPoint = [touch locationInView:showImageView];
|
|
|
|
|
|
CGFloat ratex = 0.0;
|
|
|
CGFloat ratey = 0.0;
|
|
|
|
|
|
- /*横屏状态下需要坐标翻转*/
|
|
|
- if(showImageView.frame.size.width > showImageView.frame.size.height){/*横屏模式*/
|
|
|
- ratex = ksharedAppDelegate.couldPhone_H_PHONE/showImageView.frame.size.width;
|
|
|
- ratey = ksharedAppDelegate.couldPhone_W_PHONE/showImageView.frame.size.height;
|
|
|
- }else{
|
|
|
- ratex = ksharedAppDelegate.couldPhone_W_PHONE/showImageView.frame.size.width;
|
|
|
- ratey = ksharedAppDelegate.couldPhone_H_PHONE/showImageView.frame.size.height;
|
|
|
- }
|
|
|
- CGFloat x = lastPoint.x*ratex;
|
|
|
- CGFloat y = lastPoint.y*ratey;
|
|
|
+ ratex = ksharedAppDelegate.couldPhone_W_PHONE/showImageView.frame.size.width;
|
|
|
+ ratey = ksharedAppDelegate.couldPhone_H_PHONE/showImageView.frame.size.height;
|
|
|
+
|
|
|
+ NSLog(@"kk is 1");
|
|
|
+
|
|
|
+ CGPoint lastPoint = [touch locationInView:showImageView];
|
|
|
+
|
|
|
+ CGFloat x = isLan?(lastPoint.y*ratey):(lastPoint.x*ratex);
|
|
|
+ CGFloat y = isLan?((showImageView.frame.size.width - lastPoint.x)*ratex):lastPoint.y*ratey;
|
|
|
|
|
|
NSString *dataStr = [NSString stringWithFormat:@"{\"data\":{\"action\":0,\"count\":%ld,\"pointerId\":%d,\"x\":\"%.2f\",\"y\":\"%.2f\"},\"type\":\"event\"}",(long)touchCount,touchid,x,y];
|
|
|
|
|
@@ -229,18 +482,15 @@
|
|
|
CGFloat ratex = 0.0;
|
|
|
CGFloat ratey = 0.0;
|
|
|
|
|
|
+ ratex = ksharedAppDelegate.couldPhone_W_PHONE/showImageView.frame.size.width;
|
|
|
+ ratey = ksharedAppDelegate.couldPhone_H_PHONE/showImageView.frame.size.height;
|
|
|
+
|
|
|
+ NSLog(@"kk is 3");
|
|
|
+
|
|
|
CGPoint lastPoint = [touch locationInView:showImageView];
|
|
|
|
|
|
- /*横屏状态下需要坐标翻转*/
|
|
|
- if(showImageView.frame.size.width > showImageView.frame.size.height){/*横屏模式*/
|
|
|
- ratex = ksharedAppDelegate.couldPhone_H_PHONE/showImageView.frame.size.width;
|
|
|
- ratey = ksharedAppDelegate.couldPhone_W_PHONE/showImageView.frame.size.height;
|
|
|
- }else{
|
|
|
- ratex = ksharedAppDelegate.couldPhone_W_PHONE/showImageView.frame.size.width;
|
|
|
- ratey = ksharedAppDelegate.couldPhone_H_PHONE/showImageView.frame.size.height;
|
|
|
- }
|
|
|
- CGFloat x = lastPoint.x*ratex;
|
|
|
- CGFloat y = lastPoint.y*ratey;
|
|
|
+ CGFloat x = isLan?(lastPoint.y*ratey):(lastPoint.x*ratex);
|
|
|
+ CGFloat y = isLan?((showImageView.frame.size.width - lastPoint.x)*ratex):lastPoint.y*ratey;
|
|
|
|
|
|
NSString *dataStr = [NSString stringWithFormat:@"{\"data\":{\"action\":1,\"count\":%ld,\"pointerId\":%d,\"x\":\"%.2f\",\"y\":\"%.2f\"},\"type\":\"event\"}",(long)touchCount,touchid,x,y];
|
|
|
|
|
@@ -269,24 +519,20 @@
|
|
|
CGFloat ratex = 0.0;
|
|
|
CGFloat ratey = 0.0;
|
|
|
|
|
|
+ ratex = ksharedAppDelegate.couldPhone_W_PHONE/showImageView.frame.size.width;
|
|
|
+ ratey = ksharedAppDelegate.couldPhone_H_PHONE/showImageView.frame.size.height;
|
|
|
+
|
|
|
+ NSLog(@"kk is 2");
|
|
|
+
|
|
|
CGPoint lastPoint = [touch locationInView:showImageView];
|
|
|
|
|
|
- /*横屏状态下需要坐标翻转*/
|
|
|
- if(showImageView.frame.size.width > showImageView.frame.size.height){/*横屏模式*/
|
|
|
- ratex = ksharedAppDelegate.couldPhone_H_PHONE/showImageView.frame.size.width;
|
|
|
- ratey = ksharedAppDelegate.couldPhone_W_PHONE/showImageView.frame.size.height;
|
|
|
- }else{
|
|
|
- ratex = ksharedAppDelegate.couldPhone_W_PHONE/showImageView.frame.size.width;
|
|
|
- ratey = ksharedAppDelegate.couldPhone_H_PHONE/showImageView.frame.size.height;
|
|
|
- }
|
|
|
- CGFloat x = lastPoint.x*ratex;
|
|
|
- CGFloat y = lastPoint.y*ratey;
|
|
|
+ CGFloat x = isLan?(lastPoint.y*ratey):(lastPoint.x*ratex);
|
|
|
+ CGFloat y = isLan?((showImageView.frame.size.width - lastPoint.x)*ratex):lastPoint.y*ratey;
|
|
|
|
|
|
NSString *dataStr = [NSString stringWithFormat:@"{\"data\":{\"action\":2,\"count\":%ld,\"pointerId\":%d,\"x\":\"%.2f\",\"y\":\"%.2f\"},\"type\":\"event\"}",(long)touchCount,touchid,x,y];
|
|
|
|
|
|
return dataStr;
|
|
|
}
|
|
|
-
|
|
|
+ (NSString *)toStopControllerDevice500
|
|
|
{
|
|
|
NSString *stopContrStr = [NSString stringWithFormat:@"{\"data\":{\"x\":\"%d\",\"y\":\"%d\"},\"type\":\"closeServer\"}",0,0];
|
|
@@ -343,6 +589,25 @@
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
+* @brief 关闭本地键盘透传
|
|
|
+*
|
|
|
+*/
|
|
|
++ (NSString *)commandCloseLoaclKeyboad{
|
|
|
+ NSString *stopContrStr = @"{\"data\":{\"type\":2},\"type\":\"InputMethod\"}";
|
|
|
+
|
|
|
+ if (USENEWCONTROLLCOMMONDNO500)
|
|
|
+ {
|
|
|
+// stopContrStr = [self commondAppendingHeadAndEndStrWithSourStr:stopContrStr];
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ stopContrStr = [self commandAppending00StringWithSourStr:stopContrStr];
|
|
|
+ }
|
|
|
+
|
|
|
+ return stopContrStr;
|
|
|
+}
|
|
|
+
|
|
|
+/**
|
|
|
* @brief 关闭云手机键盘透传
|
|
|
*
|
|
|
*/
|
|
@@ -434,6 +699,21 @@
|
|
|
return dataStr;
|
|
|
}
|
|
|
|
|
|
++ (NSString *)commandSetFps{
|
|
|
+ NSString *dataStr = @"{\"data\":{\"frame_rate\":25,\"clientType\":\"ios\"},\"type\":5}";
|
|
|
+
|
|
|
+ if (USENEWCONTROLLCOMMONDNO500)
|
|
|
+ {
|
|
|
+// dataStr = [self commondAppendingHeadAndEndStrWithSourStr:dataStr];
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ dataStr = [self commandAppending00StringWithSourStr:dataStr];
|
|
|
+ }
|
|
|
+
|
|
|
+ return dataStr;
|
|
|
+}
|
|
|
+
|
|
|
/**
|
|
|
* @brief 云手机预览图指令
|
|
|
*/
|
|
@@ -555,6 +835,7 @@
|
|
|
return dataStr;
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ (NSArray *)getAllIvar:(id)object
|
|
|
{
|
|
|
NSMutableArray *array = [NSMutableArray array];
|