#431 AutomationEventList.GetEvents method added

This commit is contained in:
JupiterRider 2024-10-23 20:48:36 +02:00
parent b7833eeae8
commit 5268babfe0

View file

@ -176,7 +176,14 @@ type AutomationEvent struct {
type AutomationEventList struct {
Capacity uint32
Count uint32
Events *AutomationEvent
// Events array (c array)
//
// Use AutomationEventList.GetEvents instead (go slice)
Events *AutomationEvent
}
func (a *AutomationEventList) GetEvents() []AutomationEvent {
return unsafe.Slice(a.Events, a.Count)
}
// CameraMode type