Add bindings for the SDL_AUDIODEVICEADDED and SDL_AUDIODEVICEREMOVED events.
This commit is contained in:
parent
396299307f
commit
64e2a93d55
18
src/SDL2.cs
18
src/SDL2.cs
@ -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)]
|
[StructLayout(LayoutKind.Sequential)]
|
||||||
public struct SDL_TouchFingerEvent
|
public struct SDL_TouchFingerEvent
|
||||||
{
|
{
|
||||||
@ -3879,6 +3895,8 @@ namespace SDL2
|
|||||||
[FieldOffset(0)]
|
[FieldOffset(0)]
|
||||||
public SDL_ControllerDeviceEvent cdevice;
|
public SDL_ControllerDeviceEvent cdevice;
|
||||||
[FieldOffset(0)]
|
[FieldOffset(0)]
|
||||||
|
public SDL_AudioDeviceEvent adevice;
|
||||||
|
[FieldOffset(0)]
|
||||||
public SDL_QuitEvent quit;
|
public SDL_QuitEvent quit;
|
||||||
[FieldOffset(0)]
|
[FieldOffset(0)]
|
||||||
public SDL_UserEvent user;
|
public SDL_UserEvent user;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user