From ca238975dc63d2dddcd2b17ad627bedc95dd158c Mon Sep 17 00:00:00 2001 From: jussi Date: Fri, 1 Mar 2024 23:11:54 +0200 Subject: Automation events. --- API.md | 106 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 106 insertions(+) (limited to 'API.md') diff --git a/API.md b/API.md index 70305e2..fcfd5f3 100644 --- a/API.md +++ b/API.md @@ -4516,6 +4516,112 @@ Decode Base64 string data --- +## Core - Automation events functionality + +--- + +> eventList = RL.LoadAutomationEventList( string|nil fileName ) + +Load automation events list from file, nil for empty list, capacity = MAX_AUTOMATION_EVENTS + +- Success return AutomationEventList + +--- + +> RL.UnloadAutomationEventList( AutomationEventList list ) + +Unload automation events list from file + +--- + +> success = RL.ExportAutomationEventList( string fileName ) + +Export automation events list as text file + +- Failure return false +- Success return true + +--- + +> RL.SetAutomationEventList( AutomationEventList list ) + +Set automation event list to record to + +--- + +> RL.SetAutomationEventBaseFrame( int frame ) + +Set automation event internal base frame to start recording + +--- + +> RL.StartAutomationEventRecording() + +Start recording automation events (AutomationEventList must be set) + +--- + +> RL.StopAutomationEventRecording() + +Stop recording automation events + +--- + +> RL.PlayAutomationEvent( AutomationEvent event ) + +Play a recorded automation event + +--- + +> capacity = RL.GetAutomationEventListCapacity( AutomationEventList list ) + +Get automation event list capacity + +- Success return int + +--- + +> count = RL.GetAutomationEventListCount( AutomationEventList list ) + +Get automation event list count + +- Success return int + +--- + +> event = RL.GetAutomationEvent( AutomationEventList list, int index ) + +Get automation event from automation event list + +- Failure return nil +- Success return AutomationEvent + +--- + +> frame = RL.GetAutomationEventFrame( AutomationEvent event ) + +Get automation event frame + +- Success return int + +--- + +> type = RL.GetAutomationEventType( AutomationEvent event ) + +Get automation event type + +- Success return int + +--- + +> params = RL.GetAutomationEventParams( AutomationEvent event ) + +Get automation event params + +- Success return int{} + +--- + ## Core - Input-related functions: keyboard --- -- cgit v1.2.3