MCPcopy Create free account
hub / github.com/assaultcube/AC / loopv

Function loopv

source/src/main.cpp:816–826  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

814static 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))

Callers

nothing calls this directly

Calls 7

skipmousemotionFunction · 0.85
behindpathFunction · 0.85
getfilesizeFunction · 0.85
openfileFunction · 0.85
zipmanualreadFunction · 0.85
conoutfFunction · 0.70
removeMethod · 0.45

Tested by

no test coverage detected