Rename SDL_BUTTON() to SDL_BUTTON_MASK()

Fixes https://github.com/libsdl-org/SDL/issues/11056
This commit is contained in:
Sam Lantinga committed 2024-10-04 09:13:59 -07:00
1 parent d529407ce7
commit 6c64c62114
11 files changed
+40 -33

No files matched your search

+2 -2
View File
@@ -1018,12 +1018,12 @@ static void SDLTest_PrintButtonMask(char *text, size_t maxlen, SDL_MouseButtonFl
int i;
int count = 0;
for (i = 1; i <= 32; ++i) {
const Uint32 flag = SDL_BUTTON(i);
const Uint32 flag = SDL_BUTTON_MASK(i);
if ((flags & flag) == flag) {
if (count > 0) {
SDL_snprintfcat(text, maxlen, " | ");
}
SDL_snprintfcat(text, maxlen, "SDL_BUTTON(%d)", i);
SDL_snprintfcat(text, maxlen, "SDL_BUTTON_MASK(%d)", i);
++count;
}
}