Adding tag names to enums

Adding tag names to following enums:
SDL_JoystickType, SDL_JoystickConnectionState, SDL_TouchDeviceType, SDL_DUMMY_ENUM
This commit is contained in:
Petar Popovic 2024-04-28 22:44:14 +02:00 committed by Sam Lantinga
parent dffbb574ea
commit 8d0ad44edd
3 changed files with 4 additions and 4 deletions

View file

@ -88,7 +88,7 @@ typedef SDL_GUID SDL_JoystickGUID;
*/
typedef Uint32 SDL_JoystickID;
typedef enum
typedef enum SDL_JoystickType
{
SDL_JOYSTICK_TYPE_UNKNOWN,
SDL_JOYSTICK_TYPE_GAMEPAD,
@ -102,7 +102,7 @@ typedef enum
SDL_JOYSTICK_TYPE_THROTTLE
} SDL_JoystickType;
typedef enum
typedef enum SDL_JoystickConnectionState
{
SDL_JOYSTICK_CONNECTION_INVALID = -1,
SDL_JOYSTICK_CONNECTION_UNKNOWN,

View file

@ -439,7 +439,7 @@ SDL_COMPILE_TIME_ASSERT(sint64, sizeof(Sint64) == 8);
#ifndef DOXYGEN_SHOULD_IGNORE_THIS
#if !defined(SDL_PLATFORM_VITA) && !defined(SDL_PLATFORM_3DS)
/* TODO: include/SDL_stdinc.h:390: error: size of array 'SDL_dummy_enum' is negative */
typedef enum
typedef enum SDL_DUMMY_ENUM
{
DUMMY_ENUM_VALUE
} SDL_DUMMY_ENUM;

View file

@ -42,7 +42,7 @@ extern "C" {
typedef Uint64 SDL_TouchID;
typedef Uint64 SDL_FingerID;
typedef enum
typedef enum SDL_TouchDeviceType
{
SDL_TOUCH_DEVICE_INVALID = -1,
SDL_TOUCH_DEVICE_DIRECT, /* touch screen with window-relative coordinates */