| 41 | } |
| 42 | |
| 43 | Uint32 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 | |
| 56 | Uint32 SDL_GetGlobalMouseState(int *x, int *y) |
| 57 | { |
no outgoing calls
no test coverage detected