mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-06-05 15:03:43 +00:00
Rename mouse BUTTON(DOWN|UP) event to BUTTON_(DOWN|UP)
This commit is contained in:
parent
413376cdb3
commit
758c0dd6d8
23 changed files with 45 additions and 45 deletions
|
@ -136,7 +136,7 @@ void loop(void *arg)
|
|||
active->y2 = event.motion.y;
|
||||
break;
|
||||
|
||||
case SDL_EVENT_MOUSE_BUTTONDOWN:
|
||||
case SDL_EVENT_MOUSE_BUTTON_DOWN:
|
||||
if (active == NULL) {
|
||||
active = SDL_calloc(1, sizeof(*active));
|
||||
active->x1 = active->x2 = event.button.x;
|
||||
|
@ -170,7 +170,7 @@ void loop(void *arg)
|
|||
}
|
||||
break;
|
||||
|
||||
case SDL_EVENT_MOUSE_BUTTONUP:
|
||||
case SDL_EVENT_MOUSE_BUTTON_UP:
|
||||
if (active == NULL) {
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue