mirror of
https://github.com/encounter/SDL.git
synced 2025-12-11 22:44:17 +00:00
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:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user