c-module ready
This commit is contained in:
1 parent
29700e6f18
commit
6a9891adee
4 files changed
+6
-11
No files matched your search
@@ -330,9 +330,8 @@ static CGRect streamViewBounds;
|
||||
|
||||
// save on-screen game controller buttons & sticks as buttonstate:
|
||||
for (CALayer *oscButtonLayer in oscButtonLayers) {
|
||||
oscButtonLayer.position = [self normalizeWidgetPosition:oscButtonLayer.position];
|
||||
OnScreenButtonState *buttonState = [[OnScreenButtonState alloc] initWithButtonName:oscButtonLayer.name buttonType:LegacyOscButton andPosition:oscButtonLayer.position];
|
||||
oscButtonLayer.position = [self denormalizeWidgetPosition:oscButtonLayer.position];
|
||||
CGPoint normalizedPosition = [self normalizeWidgetPosition:oscButtonLayer.position];
|
||||
OnScreenButtonState *buttonState = [[OnScreenButtonState alloc] initWithButtonName:oscButtonLayer.name buttonType:LegacyOscButton andPosition:normalizedPosition];
|
||||
// add hidden attr here
|
||||
buttonState.isHidden = oscButtonLayer.isHidden;
|
||||
buttonState.oscLayerSizeFactor = [OnScreenControls getControllerLayerSizeFactor:oscButtonLayer];
|
||||
@@ -356,10 +355,8 @@ static CGRect streamViewBounds;
|
||||
|
||||
// save on-screen widget views (keyboard & mouse command) as buttonstate:
|
||||
for(OnScreenWidgetView* widgetView in OnScreenWidgetViews){
|
||||
|
||||
widgetView.center = [self normalizeWidgetPosition:widgetView.center];
|
||||
OnScreenButtonState *buttonState = [[OnScreenButtonState alloc] initWithButtonName:widgetView.buttonLabel buttonType:CustomOnScreenWidget andPosition:widgetView.center];
|
||||
widgetView.center = [self denormalizeWidgetPosition:widgetView.center];
|
||||
CGPoint normalizedPosition = [self normalizeWidgetPosition:widgetView.center];
|
||||
OnScreenButtonState *buttonState = [[OnScreenButtonState alloc] initWithButtonName:widgetView.cmdString buttonType:CustomOnScreenWidget andPosition:normalizedPosition];
|
||||
buttonState.alias = widgetView.buttonLabel;
|
||||
buttonState.widthFactor = widgetView.widthFactor;
|
||||
buttonState.heightFactor = widgetView.heightFactor;
|
||||
|
||||
@@ -203,7 +203,6 @@ const double NAV_BAR_HEIGHT = 50;
|
||||
[self presentViewController:picker animated:YES completion:nil];
|
||||
}
|
||||
|
||||
|
||||
- (IBAction) importDataTapped:(id)sender {
|
||||
self.currentFileOperation = Import;
|
||||
// 2. 创建文件选择器
|
||||
@@ -251,7 +250,6 @@ didPickDocumentsAtURLs:(NSArray<NSURL *> *)urls {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
- (void)fileToProfiles:(NSURL* )sourceURL{
|
||||
bool restoreFailed = false;
|
||||
if (![sourceURL startAccessingSecurityScopedResource]) {
|
||||
|
||||
Reference in new issue
Block a user