Skip to content

Commit

Permalink
#431 AutomationEventList.GetEvents method added
Browse files Browse the repository at this point in the history
  • Loading branch information
JupiterRider committed Oct 23, 2024
1 parent b7833ee commit 5268bab
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion raylib/raylib.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5268bab

Please sign in to comment.