mirror of https://github.com/ppy/SDL3-CS.git
372 lines
19 KiB
C#
372 lines
19 KiB
C#
/*
|
|
<auto-generated/>
|
|
C# bindings for Simple DirectMedia Layer.
|
|
Original copyright notice of input files:
|
|
|
|
Simple DirectMedia Layer
|
|
Copyright (C) 1997-2024 Sam Lantinga <slouken@libsdl.org>
|
|
|
|
This software is provided 'as-is', without any express or implied
|
|
warranty. In no event will the authors be held liable for any damages
|
|
arising from the use of this software.
|
|
|
|
Permission is granted to anyone to use this software for any purpose,
|
|
including commercial applications, and to alter it and redistribute it
|
|
freely, subject to the following restrictions:
|
|
|
|
1. The origin of this software must not be misrepresented; you must not
|
|
claim that you wrote the original software. If you use this software
|
|
in a product, an acknowledgment in the product documentation would be
|
|
appreciated but is not required.
|
|
2. Altered source versions must be plainly marked as such, and must not be
|
|
misrepresented as being the original software.
|
|
3. This notice may not be removed or altered from any source distribution.
|
|
*/
|
|
|
|
using System;
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace SDL
|
|
{
|
|
public partial struct SDL_Joystick
|
|
{
|
|
}
|
|
|
|
public enum SDL_JoystickType
|
|
{
|
|
SDL_JOYSTICK_TYPE_UNKNOWN,
|
|
SDL_JOYSTICK_TYPE_GAMEPAD,
|
|
SDL_JOYSTICK_TYPE_WHEEL,
|
|
SDL_JOYSTICK_TYPE_ARCADE_STICK,
|
|
SDL_JOYSTICK_TYPE_FLIGHT_STICK,
|
|
SDL_JOYSTICK_TYPE_DANCE_PAD,
|
|
SDL_JOYSTICK_TYPE_GUITAR,
|
|
SDL_JOYSTICK_TYPE_DRUM_KIT,
|
|
SDL_JOYSTICK_TYPE_ARCADE_PAD,
|
|
SDL_JOYSTICK_TYPE_THROTTLE,
|
|
}
|
|
|
|
public enum SDL_JoystickConnectionState
|
|
{
|
|
SDL_JOYSTICK_CONNECTION_INVALID = -1,
|
|
SDL_JOYSTICK_CONNECTION_UNKNOWN,
|
|
SDL_JOYSTICK_CONNECTION_WIRED,
|
|
SDL_JOYSTICK_CONNECTION_WIRELESS,
|
|
}
|
|
|
|
public unsafe partial struct SDL_VirtualJoystickDesc
|
|
{
|
|
[NativeTypeName("Uint16")]
|
|
public ushort version;
|
|
|
|
[NativeTypeName("Uint16")]
|
|
public ushort type;
|
|
|
|
[NativeTypeName("Uint16")]
|
|
public ushort naxes;
|
|
|
|
[NativeTypeName("Uint16")]
|
|
public ushort nbuttons;
|
|
|
|
[NativeTypeName("Uint16")]
|
|
public ushort nhats;
|
|
|
|
[NativeTypeName("Uint16")]
|
|
public ushort vendor_id;
|
|
|
|
[NativeTypeName("Uint16")]
|
|
public ushort product_id;
|
|
|
|
[NativeTypeName("Uint16")]
|
|
public ushort padding;
|
|
|
|
[NativeTypeName("Uint32")]
|
|
public uint button_mask;
|
|
|
|
[NativeTypeName("Uint32")]
|
|
public uint axis_mask;
|
|
|
|
[NativeTypeName("const char *")]
|
|
public byte* name;
|
|
|
|
public void* userdata;
|
|
|
|
[NativeTypeName("void (*)(void *)")]
|
|
public delegate* unmanaged[Cdecl]<void*, void> Update;
|
|
|
|
[NativeTypeName("void (*)(void *, int)")]
|
|
public delegate* unmanaged[Cdecl]<void*, int, void> SetPlayerIndex;
|
|
|
|
[NativeTypeName("int (*)(void *, Uint16, Uint16)")]
|
|
public delegate* unmanaged[Cdecl]<void*, ushort, ushort, int> Rumble;
|
|
|
|
[NativeTypeName("int (*)(void *, Uint16, Uint16)")]
|
|
public delegate* unmanaged[Cdecl]<void*, ushort, ushort, int> RumbleTriggers;
|
|
|
|
[NativeTypeName("int (*)(void *, Uint8, Uint8, Uint8)")]
|
|
public delegate* unmanaged[Cdecl]<void*, byte, byte, byte, int> SetLED;
|
|
|
|
[NativeTypeName("int (*)(void *, const void *, int)")]
|
|
public delegate* unmanaged[Cdecl]<void*, void*, int, int> SendEffect;
|
|
}
|
|
|
|
public static unsafe partial class SDL3
|
|
{
|
|
[DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
|
public static extern void SDL_LockJoysticks();
|
|
|
|
[DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
|
public static extern void SDL_UnlockJoysticks();
|
|
|
|
[DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
|
[return: NativeTypeName("SDL_bool")]
|
|
public static extern int SDL_HasJoystick();
|
|
|
|
[DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
|
[return: NativeTypeName("SDL_JoystickID *")]
|
|
public static extern uint* SDL_GetJoysticks(int* count);
|
|
|
|
[DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
|
[return: NativeTypeName("const char *")]
|
|
public static extern byte* SDL_GetJoystickInstanceName([NativeTypeName("SDL_JoystickID")] uint instance_id);
|
|
|
|
[DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
|
[return: NativeTypeName("const char *")]
|
|
public static extern byte* SDL_GetJoystickInstancePath([NativeTypeName("SDL_JoystickID")] uint instance_id);
|
|
|
|
[DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
|
public static extern int SDL_GetJoystickInstancePlayerIndex([NativeTypeName("SDL_JoystickID")] uint instance_id);
|
|
|
|
[DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
|
[return: NativeTypeName("SDL_JoystickGUID")]
|
|
public static extern SDL_GUID SDL_GetJoystickInstanceGUID([NativeTypeName("SDL_JoystickID")] uint instance_id);
|
|
|
|
[DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
|
[return: NativeTypeName("Uint16")]
|
|
public static extern ushort SDL_GetJoystickInstanceVendor([NativeTypeName("SDL_JoystickID")] uint instance_id);
|
|
|
|
[DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
|
[return: NativeTypeName("Uint16")]
|
|
public static extern ushort SDL_GetJoystickInstanceProduct([NativeTypeName("SDL_JoystickID")] uint instance_id);
|
|
|
|
[DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
|
[return: NativeTypeName("Uint16")]
|
|
public static extern ushort SDL_GetJoystickInstanceProductVersion([NativeTypeName("SDL_JoystickID")] uint instance_id);
|
|
|
|
[DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
|
public static extern SDL_JoystickType SDL_GetJoystickInstanceType([NativeTypeName("SDL_JoystickID")] uint instance_id);
|
|
|
|
[DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
|
public static extern SDL_Joystick* SDL_OpenJoystick([NativeTypeName("SDL_JoystickID")] uint instance_id);
|
|
|
|
[DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
|
public static extern SDL_Joystick* SDL_GetJoystickFromInstanceID([NativeTypeName("SDL_JoystickID")] uint instance_id);
|
|
|
|
[DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
|
public static extern SDL_Joystick* SDL_GetJoystickFromPlayerIndex(int player_index);
|
|
|
|
[DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
|
[return: NativeTypeName("SDL_JoystickID")]
|
|
public static extern uint SDL_AttachVirtualJoystick(SDL_JoystickType type, int naxes, int nbuttons, int nhats);
|
|
|
|
[DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
|
[return: NativeTypeName("SDL_JoystickID")]
|
|
public static extern uint SDL_AttachVirtualJoystickEx([NativeTypeName("const SDL_VirtualJoystickDesc *")] SDL_VirtualJoystickDesc* desc);
|
|
|
|
[DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
|
public static extern int SDL_DetachVirtualJoystick([NativeTypeName("SDL_JoystickID")] uint instance_id);
|
|
|
|
[DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
|
[return: NativeTypeName("SDL_bool")]
|
|
public static extern int SDL_IsJoystickVirtual([NativeTypeName("SDL_JoystickID")] uint instance_id);
|
|
|
|
[DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
|
public static extern int SDL_SetJoystickVirtualAxis(SDL_Joystick* joystick, int axis, [NativeTypeName("Sint16")] short value);
|
|
|
|
[DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
|
public static extern int SDL_SetJoystickVirtualButton(SDL_Joystick* joystick, int button, [NativeTypeName("Uint8")] byte value);
|
|
|
|
[DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
|
public static extern int SDL_SetJoystickVirtualHat(SDL_Joystick* joystick, int hat, [NativeTypeName("Uint8")] byte value);
|
|
|
|
[DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
|
[return: NativeTypeName("SDL_PropertiesID")]
|
|
public static extern uint SDL_GetJoystickProperties(SDL_Joystick* joystick);
|
|
|
|
[DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
|
[return: NativeTypeName("const char *")]
|
|
public static extern byte* SDL_GetJoystickName(SDL_Joystick* joystick);
|
|
|
|
[DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
|
[return: NativeTypeName("const char *")]
|
|
public static extern byte* SDL_GetJoystickPath(SDL_Joystick* joystick);
|
|
|
|
[DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
|
public static extern int SDL_GetJoystickPlayerIndex(SDL_Joystick* joystick);
|
|
|
|
[DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
|
public static extern int SDL_SetJoystickPlayerIndex(SDL_Joystick* joystick, int player_index);
|
|
|
|
[DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
|
[return: NativeTypeName("SDL_JoystickGUID")]
|
|
public static extern SDL_GUID SDL_GetJoystickGUID(SDL_Joystick* joystick);
|
|
|
|
[DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
|
[return: NativeTypeName("Uint16")]
|
|
public static extern ushort SDL_GetJoystickVendor(SDL_Joystick* joystick);
|
|
|
|
[DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
|
[return: NativeTypeName("Uint16")]
|
|
public static extern ushort SDL_GetJoystickProduct(SDL_Joystick* joystick);
|
|
|
|
[DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
|
[return: NativeTypeName("Uint16")]
|
|
public static extern ushort SDL_GetJoystickProductVersion(SDL_Joystick* joystick);
|
|
|
|
[DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
|
[return: NativeTypeName("Uint16")]
|
|
public static extern ushort SDL_GetJoystickFirmwareVersion(SDL_Joystick* joystick);
|
|
|
|
[DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
|
[return: NativeTypeName("const char *")]
|
|
public static extern byte* SDL_GetJoystickSerial(SDL_Joystick* joystick);
|
|
|
|
[DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
|
public static extern SDL_JoystickType SDL_GetJoystickType(SDL_Joystick* joystick);
|
|
|
|
[DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
|
public static extern int SDL_GetJoystickGUIDString([NativeTypeName("SDL_JoystickGUID")] SDL_GUID guid, [NativeTypeName("char *")] byte* pszGUID, int cbGUID);
|
|
|
|
[DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
|
[return: NativeTypeName("SDL_JoystickGUID")]
|
|
public static extern SDL_GUID SDL_GetJoystickGUIDFromString([NativeTypeName("const char *")] byte* pchGUID);
|
|
|
|
[DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
|
public static extern void SDL_GetJoystickGUIDInfo([NativeTypeName("SDL_JoystickGUID")] SDL_GUID guid, [NativeTypeName("Uint16 *")] ushort* vendor, [NativeTypeName("Uint16 *")] ushort* product, [NativeTypeName("Uint16 *")] ushort* version, [NativeTypeName("Uint16 *")] ushort* crc16);
|
|
|
|
[DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
|
[return: NativeTypeName("SDL_bool")]
|
|
public static extern int SDL_JoystickConnected(SDL_Joystick* joystick);
|
|
|
|
[DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
|
[return: NativeTypeName("SDL_JoystickID")]
|
|
public static extern uint SDL_GetJoystickInstanceID(SDL_Joystick* joystick);
|
|
|
|
[DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
|
public static extern int SDL_GetNumJoystickAxes(SDL_Joystick* joystick);
|
|
|
|
[DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
|
public static extern int SDL_GetNumJoystickBalls(SDL_Joystick* joystick);
|
|
|
|
[DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
|
public static extern int SDL_GetNumJoystickHats(SDL_Joystick* joystick);
|
|
|
|
[DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
|
public static extern int SDL_GetNumJoystickButtons(SDL_Joystick* joystick);
|
|
|
|
[DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
|
public static extern void SDL_SetJoystickEventsEnabled([NativeTypeName("SDL_bool")] int enabled);
|
|
|
|
[DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
|
[return: NativeTypeName("SDL_bool")]
|
|
public static extern int SDL_JoystickEventsEnabled();
|
|
|
|
[DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
|
public static extern void SDL_UpdateJoysticks();
|
|
|
|
[DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
|
[return: NativeTypeName("Sint16")]
|
|
public static extern short SDL_GetJoystickAxis(SDL_Joystick* joystick, int axis);
|
|
|
|
[DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
|
[return: NativeTypeName("SDL_bool")]
|
|
public static extern int SDL_GetJoystickAxisInitialState(SDL_Joystick* joystick, int axis, [NativeTypeName("Sint16 *")] short* state);
|
|
|
|
[DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
|
public static extern int SDL_GetJoystickBall(SDL_Joystick* joystick, int ball, int* dx, int* dy);
|
|
|
|
[DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
|
[return: NativeTypeName("Uint8")]
|
|
public static extern byte SDL_GetJoystickHat(SDL_Joystick* joystick, int hat);
|
|
|
|
[DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
|
[return: NativeTypeName("Uint8")]
|
|
public static extern byte SDL_GetJoystickButton(SDL_Joystick* joystick, int button);
|
|
|
|
[DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
|
public static extern int SDL_RumbleJoystick(SDL_Joystick* joystick, [NativeTypeName("Uint16")] ushort low_frequency_rumble, [NativeTypeName("Uint16")] ushort high_frequency_rumble, [NativeTypeName("Uint32")] uint duration_ms);
|
|
|
|
[DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
|
public static extern int SDL_RumbleJoystickTriggers(SDL_Joystick* joystick, [NativeTypeName("Uint16")] ushort left_rumble, [NativeTypeName("Uint16")] ushort right_rumble, [NativeTypeName("Uint32")] uint duration_ms);
|
|
|
|
[DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
|
public static extern int SDL_SetJoystickLED(SDL_Joystick* joystick, [NativeTypeName("Uint8")] byte red, [NativeTypeName("Uint8")] byte green, [NativeTypeName("Uint8")] byte blue);
|
|
|
|
[DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
|
public static extern int SDL_SendJoystickEffect(SDL_Joystick* joystick, [NativeTypeName("const void *")] void* data, int size);
|
|
|
|
[DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
|
public static extern void SDL_CloseJoystick(SDL_Joystick* joystick);
|
|
|
|
[DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
|
public static extern SDL_JoystickConnectionState SDL_GetJoystickConnectionState(SDL_Joystick* joystick);
|
|
|
|
[DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
|
public static extern SDL_PowerState SDL_GetJoystickPowerInfo(SDL_Joystick* joystick, int* percent);
|
|
|
|
[NativeTypeName("#define SDL_JOYSTICK_AXIS_MAX 32767")]
|
|
public const int SDL_JOYSTICK_AXIS_MAX = 32767;
|
|
|
|
[NativeTypeName("#define SDL_JOYSTICK_AXIS_MIN -32768")]
|
|
public const int SDL_JOYSTICK_AXIS_MIN = -32768;
|
|
|
|
[NativeTypeName("#define SDL_IPHONE_MAX_GFORCE 5.0")]
|
|
public const double SDL_IPHONE_MAX_GFORCE = 5.0;
|
|
|
|
[NativeTypeName("#define SDL_VIRTUAL_JOYSTICK_DESC_VERSION 1")]
|
|
public const int SDL_VIRTUAL_JOYSTICK_DESC_VERSION = 1;
|
|
|
|
[NativeTypeName("#define SDL_PROP_JOYSTICK_CAP_MONO_LED_BOOLEAN \"SDL.joystick.cap.mono_led\"")]
|
|
public static ReadOnlySpan<byte> SDL_PROP_JOYSTICK_CAP_MONO_LED_BOOLEAN => "SDL.joystick.cap.mono_led"u8;
|
|
|
|
[NativeTypeName("#define SDL_PROP_JOYSTICK_CAP_RGB_LED_BOOLEAN \"SDL.joystick.cap.rgb_led\"")]
|
|
public static ReadOnlySpan<byte> SDL_PROP_JOYSTICK_CAP_RGB_LED_BOOLEAN => "SDL.joystick.cap.rgb_led"u8;
|
|
|
|
[NativeTypeName("#define SDL_PROP_JOYSTICK_CAP_PLAYER_LED_BOOLEAN \"SDL.joystick.cap.player_led\"")]
|
|
public static ReadOnlySpan<byte> SDL_PROP_JOYSTICK_CAP_PLAYER_LED_BOOLEAN => "SDL.joystick.cap.player_led"u8;
|
|
|
|
[NativeTypeName("#define SDL_PROP_JOYSTICK_CAP_RUMBLE_BOOLEAN \"SDL.joystick.cap.rumble\"")]
|
|
public static ReadOnlySpan<byte> SDL_PROP_JOYSTICK_CAP_RUMBLE_BOOLEAN => "SDL.joystick.cap.rumble"u8;
|
|
|
|
[NativeTypeName("#define SDL_PROP_JOYSTICK_CAP_TRIGGER_RUMBLE_BOOLEAN \"SDL.joystick.cap.trigger_rumble\"")]
|
|
public static ReadOnlySpan<byte> SDL_PROP_JOYSTICK_CAP_TRIGGER_RUMBLE_BOOLEAN => "SDL.joystick.cap.trigger_rumble"u8;
|
|
|
|
[NativeTypeName("#define SDL_HAT_CENTERED 0x00")]
|
|
public const int SDL_HAT_CENTERED = 0x00;
|
|
|
|
[NativeTypeName("#define SDL_HAT_UP 0x01")]
|
|
public const int SDL_HAT_UP = 0x01;
|
|
|
|
[NativeTypeName("#define SDL_HAT_RIGHT 0x02")]
|
|
public const int SDL_HAT_RIGHT = 0x02;
|
|
|
|
[NativeTypeName("#define SDL_HAT_DOWN 0x04")]
|
|
public const int SDL_HAT_DOWN = 0x04;
|
|
|
|
[NativeTypeName("#define SDL_HAT_LEFT 0x08")]
|
|
public const int SDL_HAT_LEFT = 0x08;
|
|
|
|
[NativeTypeName("#define SDL_HAT_RIGHTUP (SDL_HAT_RIGHT|SDL_HAT_UP)")]
|
|
public const int SDL_HAT_RIGHTUP = (0x02 | 0x01);
|
|
|
|
[NativeTypeName("#define SDL_HAT_RIGHTDOWN (SDL_HAT_RIGHT|SDL_HAT_DOWN)")]
|
|
public const int SDL_HAT_RIGHTDOWN = (0x02 | 0x04);
|
|
|
|
[NativeTypeName("#define SDL_HAT_LEFTUP (SDL_HAT_LEFT|SDL_HAT_UP)")]
|
|
public const int SDL_HAT_LEFTUP = (0x08 | 0x01);
|
|
|
|
[NativeTypeName("#define SDL_HAT_LEFTDOWN (SDL_HAT_LEFT|SDL_HAT_DOWN)")]
|
|
public const int SDL_HAT_LEFTDOWN = (0x08 | 0x04);
|
|
}
|
|
}
|