MCPcopy Create free account
hub / github.com/clementgallet/libTAS / SDL_GetMouseState

Function SDL_GetMouseState

src/library/inputs/sdlpointer.cpp:43–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43Uint32 SDL_GetMouseState(int *x, int *y)
44{
45 LOGTRACE(LCF_SDL | LCF_MOUSE);
46
47 if (x != NULL)
48 *x = Inputs::game_ai.pointer.x;
49 if (y != NULL)
50 *y = Inputs::game_ai.pointer.y;
51
52 /* Translating pointer mask to SDL pointer state */
53 return SingleInput::toSDL2PointerMask(Inputs::game_ai.pointer.mask);
54}
55
56Uint32 SDL_GetGlobalMouseState(int *x, int *y)
57{

Callers 1

SDL_GetGlobalMouseStateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected