update profile template binaries
This commit is contained in:
@@ -65,7 +65,8 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
*/
|
||||
- (void) duplicateSelectedProfileWithName:(NSString*)name;
|
||||
|
||||
- (bool) updateSelectedProfile:(NSMutableArray *) oscButtonLayers;
|
||||
- (bool) updateSelectedProfile:(NSMutableSet *) oscButtonLayers;
|
||||
|
||||
/**
|
||||
* Delete current selected profile.
|
||||
*/
|
||||
|
||||
@@ -257,7 +257,7 @@ static CGRect layoutViewBounds;
|
||||
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
|
||||
|
||||
// NSString* persistedKey = @"widgetProfileUpdated-20251015";
|
||||
NSString* persistedKey = @"widgetProfileUpdated-20260212";
|
||||
NSString* persistedKey = @"widgetProfileUpdated-20260213";
|
||||
BOOL needImportDefaultTemplates = [defaults objectForKey:persistedKey] == nil;
|
||||
|
||||
if(profiles.count == 0 || needImportDefaultTemplates){
|
||||
@@ -310,7 +310,7 @@ static CGRect layoutViewBounds;
|
||||
}
|
||||
|
||||
|
||||
- (bool) updateSelectedProfile:(NSMutableArray *) oscButtonLayers {
|
||||
- (bool) updateSelectedProfile:(NSMutableSet *) oscButtonLayers {
|
||||
NSMutableArray* buttonStatesEncoded = [self convertOnScreenControllerAndWidgetsToButtonStates:oscButtonLayers];
|
||||
if([self getIndexOfSelectedProfile]==0) return false;
|
||||
/*
|
||||
@@ -371,7 +371,7 @@ static CGRect layoutViewBounds;
|
||||
return position;
|
||||
}
|
||||
|
||||
- (NSMutableArray* ) convertOnScreenControllerAndWidgetsToButtonStates:(NSMutableArray *) oscButtonLayers {
|
||||
- (NSMutableArray* ) convertOnScreenControllerAndWidgetsToButtonStates:(NSMutableSet *) oscButtonLayers {
|
||||
/* iterate through each OSC button the user sees on screen, create an 'OnScreenButtonState' object from each button, encode each object, and then add each object to an array */
|
||||
/*
|
||||
NSSet *validPositionButtonNames = [NSSet setWithObjects:
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -1595,7 +1595,7 @@ static NSMutableSet* hostList;
|
||||
}
|
||||
if([UIScreen mainScreen].maximumFramesPerSecond > 110) settings.asyncFrameDequeue = true;
|
||||
if([UIScreen mainScreen].maximumFramesPerSecond < 65) settings.asyncFrameDequeue = true;
|
||||
settings.touchMoveEventInterval = @(1333);
|
||||
settings.touchMoveEventInterval = [Utils isIPhone] ? @(30) : @(0);
|
||||
[dataMan saveData];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user