veandco / go-sdl2

SDL2 binding for Go
https://godoc.org/github.com/veandco/go-sdl2
BSD 3-Clause "New" or "Revised" License
2.18k stars 219 forks source link

fixed UserEvent typecast #417

Closed flyx closed 4 years ago

flyx commented 4 years ago

RegisterEvents() allows multiple events to be registered. They are numbered starting at and going beyond USEREVENT. Therefore, the cast back to Go types ought to cast everything beyond USEREVENT to a Go UserEvent.

veeableful commented 4 years ago

This is quite a bug! Thanks for the fix @flyx!