Skip to content

Commit

Permalink
Merge pull request #439 from JupiterRider/automationEvents
Browse files Browse the repository at this point in the history
#431 AutomationEventList.GetEvents method added
  • Loading branch information
gen2brain authored Oct 24, 2024
2 parents b7833ee + 5268bab commit bb20d2d
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 bb20d2d

Please sign in to comment.