Changed SDL_GetAbsoluteMouseState() to SDL_GetGlobalMouseState().

This matches naming conventions in the main repository, between
 SDL_GetRelativeMouseState() and SDL_WarpMouseGlobal().
This commit is contained in:
Ryan C. Gordon
2014-06-25 16:16:55 -04:00
parent 2cce7b2ed3
commit 8436956711
9 changed files with 14 additions and 14 deletions

View File

@@ -470,7 +470,7 @@ SDL_GetRelativeMouseState(int *x, int *y)
}
Uint32
SDL_GetAbsoluteMouseState(int *x, int *y)
SDL_GetGlobalMouseState(int *x, int *y)
{
SDL_Mouse *mouse = SDL_GetMouse();
int tmpx, tmpy;
@@ -485,12 +485,12 @@ SDL_GetAbsoluteMouseState(int *x, int *y)
*x = *y = 0;
if (!mouse->GetAbsoluteMouseState) {
if (!mouse->GetGlobalMouseState) {
SDL_assert(0 && "This should really be implemented for every target.");
return 0;
}
return mouse->GetAbsoluteMouseState(x, y);
return mouse->GetGlobalMouseState(x, y);
}
void

View File

@@ -67,7 +67,7 @@ typedef struct
int (*CaptureMouse) (SDL_Window * window);
/* Get absolute mouse coordinates. (x) and (y) are never NULL and set to zero before call. */
Uint32 (*GetAbsoluteMouseState) (int *x, int *y);
Uint32 (*GetGlobalMouseState) (int *x, int *y);
/* Data common to all mice */
SDL_MouseID mouseID;