Add bindings for the SDL_AUDIODEVICEADDED and SDL_AUDIODEVICEREMOVED events.

pull/126/head
Keith Holman 2017-12-05 17:43:37 -08:00 committed by Ethan Lee
parent 396299307f
commit 64e2a93d55
1 changed files with 18 additions and 0 deletions

View File

@ -3760,6 +3760,22 @@ namespace SDL2
*/
}
// Ignore private members used for padding in this struct
#pragma warning disable 0169
/* Audio device event (event.adevice.*) */
[StructLayout(LayoutKind.Sequential)]
public struct SDL_AudioDeviceEvent
{
public UInt32 type;
public UInt32 timestamp;
public UInt32 which;
public byte iscapture;
private byte padding1;
private byte padding2;
private byte padding3;
}
#pragma warning restore 0169
[StructLayout(LayoutKind.Sequential)]
public struct SDL_TouchFingerEvent
{
@ -3879,6 +3895,8 @@ namespace SDL2
[FieldOffset(0)]
public SDL_ControllerDeviceEvent cdevice;
[FieldOffset(0)]
public SDL_AudioDeviceEvent adevice;
[FieldOffset(0)]
public SDL_QuitEvent quit;
[FieldOffset(0)]
public SDL_UserEvent user;