mirror of
https://github.com/zakk4223/CocoaSplit.git
synced 2026-05-21 06:46:14 -06:00
Added MIDI action for freeze frame
This commit is contained in:
parent
36a9855b35
commit
ad21cf6ddb
2 changed files with 9 additions and 2 deletions
Binary file not shown.
|
|
@ -2263,7 +2263,7 @@ static NSArray *_sourceTypes = nil;
|
|||
@"CKEnable", @"CKThresh", @"CKSmooth", @"BorderWidth", @"CornerRadius",
|
||||
@"GradientStartX", @"GradientStartY", @"GradientStopX", @"GradientStopY",
|
||||
@"ChangeInterval", @"EffectDuration", @"MultiTransition",
|
||||
@"PositionX", @"PositionY"];
|
||||
@"PositionX", @"PositionY", @"Freeze"];
|
||||
}
|
||||
|
||||
-(MIKMIDIResponderType)MIDIResponderTypeForCommandIdentifier:(NSString *)commandID
|
||||
|
|
@ -2275,7 +2275,7 @@ static NSArray *_sourceTypes = nil;
|
|||
ret |= MIKMIDIResponderTypeButton;
|
||||
}
|
||||
|
||||
if ([@[@"Active", @"AutoFit", @"CKEnable", @"MultiTransition"] containsObject:commandID])
|
||||
if ([@[@"Active", @"AutoFit", @"CKEnable", @"MultiTransition", @"Freeze"] containsObject:commandID])
|
||||
{
|
||||
ret = MIKMIDIResponderTypeButton;
|
||||
}
|
||||
|
|
@ -2489,6 +2489,13 @@ static NSArray *_sourceTypes = nil;
|
|||
|
||||
|
||||
|
||||
-(void)handleMIDICommandFreeze:(MIKMIDICommand *)command
|
||||
{
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
self.isFrozen = !self.isFrozen;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
-(void)handleMIDICommandAutoFit:(MIKMIDICommand *)command
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue