mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-05 01:16:26 +00:00
Rename mouse BUTTON(DOWN|UP) event to BUTTON_(DOWN|UP)
This commit is contained in:

committed by
Sam Lantinga

parent
413376cdb3
commit
758c0dd6d8
@@ -687,11 +687,11 @@ static int SDL_PrivateSendMouseButton(Uint64 timestamp, SDL_Window *window, SDL_
|
||||
/* Figure out which event to perform */
|
||||
switch (state) {
|
||||
case SDL_PRESSED:
|
||||
type = SDL_EVENT_MOUSE_BUTTONDOWN;
|
||||
type = SDL_EVENT_MOUSE_BUTTON_DOWN;
|
||||
buttonstate |= SDL_BUTTON(button);
|
||||
break;
|
||||
case SDL_RELEASED:
|
||||
type = SDL_EVENT_MOUSE_BUTTONUP;
|
||||
type = SDL_EVENT_MOUSE_BUTTON_UP;
|
||||
buttonstate &= ~SDL_BUTTON(button);
|
||||
break;
|
||||
default:
|
||||
|
Reference in New Issue
Block a user