Rename mouse BUTTON(DOWN|UP) event to BUTTON_(DOWN|UP)

This commit is contained in:
Anonymous Maarten 2023-01-30 04:06:08 +01:00 committed by Sam Lantinga
parent 413376cdb3
commit 758c0dd6d8
23 changed files with 45 additions and 45 deletions

View file

@ -167,7 +167,7 @@ quit(int rc)
/* If rc is 0, just let main return normally rather than calling exit.
* This allows testing of platforms where SDL_main is required and does meaningful cleanup.
*/
SDL_free(RawMooseData);
for (i = 0; i < MOOSEFRAMES_COUNT; i++) {
@ -221,7 +221,7 @@ void loop()
Uint64 now;
int i;
SDL_Event event;
SDL_Renderer *renderer = state->renderers[0]; /* only 1 window */
/* Check for events */
@ -236,7 +236,7 @@ void loop()
displayrect.w = (float)window_w;
displayrect.h = (float)window_h;
break;
case SDL_EVENT_MOUSE_BUTTONDOWN:
case SDL_EVENT_MOUSE_BUTTON_DOWN:
displayrect.x = event.button.x - window_w / 2;
displayrect.y = event.button.y - window_h / 2;
break;
@ -302,12 +302,12 @@ int main(int argc, char **argv)
if (state == NULL) {
return 1;
}
SDL_zeroa(MooseYUVSurfaces);
for (i = 1; i < argc;) {
int consumed;
consumed = SDLTest_CommonArg(state, i);
if (consumed == 0) {
consumed = -1;
@ -383,7 +383,7 @@ int main(int argc, char **argv)
static const char *options[] = {
"[--fps <frames per second>]",
"[--nodelay]",
"[--yuvformat <fmt>] (one of the: YV12 (default), IYUV, YUY2, UYVY, YVYU, NV12, NV21)",
"[--yuvformat <fmt>] (one of the: YV12 (default), IYUV, YUY2, UYVY, YVYU, NV12, NV21)",
"[--scale <scale factor>] (initial scale of the overlay)",
"[--nostreaming] path that use SDL_CreateTextureFromSurface() not STREAMING texture",
NULL