Skip to content

Commit d4575d0

Browse files
committed
sdl: events: fix stub function for SDL_AudioDeviceEvent
1 parent d3d0a1f commit d4575d0

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

sdl/events.go

+10-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,16 @@ package sdl
3131
#define SDL_RENDER_DEVICE_RESET (0)
3232
3333
#pragma message("SDL_AudioDeviceEvent is not supported before SDL 2.0.4")
34-
#define SDL_AudioDeviceEvent (SDL_CommonEvent)
35-
34+
typedef struct SDL_AudioDeviceEvent
35+
{
36+
Uint32 type;
37+
Uint32 timestamp;
38+
Uint32 which;
39+
Uint8 iscapture;
40+
Uint8 padding1;
41+
Uint8 padding2;
42+
Uint8 padding3;
43+
} SDL_AudioDeviceEvent;
3644
#endif
3745
*/
3846
import "C"

0 commit comments

Comments
 (0)