Changed enums to use XXX_COUNT for the count or number of values

Fixes https://github.com/libsdl-org/SDL/issues/10763
This commit is contained in:
Sam Lantinga 2024-09-11 08:08:18 -07:00
parent 64f12bea4a
commit 37c9fb490e
49 changed files with 197 additions and 174 deletions

View file

@ -851,7 +851,7 @@ typedef SDL_ControllerTouchpadEvent, SDL_GamepadTouchpadEvent;
@@
@@
- SDL_CONTROLLER_AXIS_MAX
+ SDL_GAMEPAD_AXIS_MAX
+ SDL_GAMEPAD_AXIS_COUNT
@@
@@
- SDL_CONTROLLER_AXIS_RIGHTX
@ -931,7 +931,7 @@ typedef SDL_ControllerTouchpadEvent, SDL_GamepadTouchpadEvent;
@@
@@
- SDL_CONTROLLER_BUTTON_MAX
+ SDL_GAMEPAD_BUTTON_MAX
+ SDL_GAMEPAD_BUTTON_COUNT
@@
@@
- SDL_CONTROLLER_BUTTON_MISC1
@ -3651,3 +3651,19 @@ identifier func =~ "^(SDL_AddEventWatch|SDL_AddHintCallback|SDL_AddSurfaceAltern
)
- == -1
)
@@
@@
- SDL_NUM_LOG_PRIORITIES
+ SDL_LOG_PRIORITY_COUNT
@@
@@
- SDL_MESSAGEBOX_COLOR_MAX
+ SDL_MESSAGEBOX_COLOR_COUNT
@@
@@
- SDL_NUM_SYSTEM_CURSORS
+ SDL_SYSTEM_CURSOR_COUNT
@@
@@
- SDL_NUM_SCANCODES
+ SDL_SCANCODE_COUNT