| 814 | static void checkmousemotion(int &dx, int &dy) |
| 815 | { |
| 816 | loopv(events) |
| 817 | { |
| 818 | SDL_Event &event = events[i]; |
| 819 | if(skipmousemotion(event)) |
| 820 | { |
| 821 | if(i > 0) events.remove(0, i); |
| 822 | return; |
| 823 | } |
| 824 | dx += event.motion.xrel; |
| 825 | dy += event.motion.yrel; |
| 826 | } |
| 827 | events.setsize(0); |
| 828 | SDL_Event event; |
| 829 | while(SDL_PollEvent(&event)) |
nothing calls this directly
no test coverage detected