Rename SDL_BUTTON() to SDL_BUTTON_MASK()
Fixes https://github.com/libsdl-org/SDL/issues/11056
This commit is contained in:
1 parent
d529407ce7
commit
6c64c62114
11 files changed
+40
-33
No files matched your search
@@ -286,9 +286,9 @@ static void HandleMouseButton(SDL_MouseButtonEvent *event)
|
||||
}
|
||||
if (event->which == mouse_state->instance_id) {
|
||||
if (event->down) {
|
||||
mouse_state->button_state |= SDL_BUTTON(event->button);
|
||||
mouse_state->button_state |= SDL_BUTTON_MASK(event->button);
|
||||
} else {
|
||||
mouse_state->button_state &= ~SDL_BUTTON(event->button);
|
||||
mouse_state->button_state &= ~SDL_BUTTON_MASK(event->button);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user