mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-11 06:28:24 +02:00
SDL API renaming: *Is* functions
Feedback from @icculus: "IsTablet" uses "is" as a form of "to be" ...like, the actual question is of its nature. The rest is just a superfluous word in the question and it flows as better English with if (RectEmpty) than if (IsRectEmpty) Fixes https://github.com/libsdl-org/SDL/issues/6932
This commit is contained in:
@@ -440,7 +440,7 @@ static SDL_GamepadButton FindButtonAtPosition(int x, int y)
|
||||
rect.y = button_positions[i].y;
|
||||
rect.w = BUTTON_SIZE;
|
||||
rect.h = BUTTON_SIZE;
|
||||
if (SDL_IsPointInRect(&point, &rect)) {
|
||||
if (SDL_PointInRect(&point, &rect)) {
|
||||
return (SDL_GamepadButton)i;
|
||||
}
|
||||
}
|
||||
@@ -463,7 +463,7 @@ static SDL_GamepadAxis FindAxisAtPosition(int x, int y)
|
||||
rect.y = axis_positions[i].y;
|
||||
rect.w = AXIS_SIZE;
|
||||
rect.h = AXIS_SIZE;
|
||||
if (SDL_IsPointInRect(&point, &rect)) {
|
||||
if (SDL_PointInRect(&point, &rect)) {
|
||||
return (SDL_GamepadAxis)i;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user