| 802 | } |
| 803 | |
| 804 | static inline bool skipmousemotion(SDL_Event &event) |
| 805 | { |
| 806 | if(event.type != SDL_MOUSEMOTION) return true; |
| 807 | if(!(SDL_GetWindowFlags(screen) & SDL_WINDOW_FULLSCREEN)) |
| 808 | { |
| 809 | if(event.motion.x == screenw / 2 && event.motion.y == screenh / 2) return true; // ignore any motion events generated SDL_WarpMouse |
| 810 | } |
| 811 | return false; |
| 812 | } |
| 813 | |
| 814 | static void checkmousemotion(int &dx, int &dy) |
| 815 | { |
no outgoing calls
no test coverage detected