MCPcopy Create free account
hub / github.com/TurningWheel/Barony / timerCallback

Function timerCallback

src/editor.cpp:1001–1018  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

999#include "ui/LoadingScreen.hpp"
1000
1001Uint32 timerCallback(Uint32 interval, void* param)
1002{
1003 SDL_Event event;
1004 SDL_UserEvent userevent;
1005
1006 userevent.type = SDL_USEREVENT;
1007 userevent.code = 0;
1008 userevent.data1 = NULL;
1009 userevent.data2 = NULL;
1010
1011 event.type = SDL_USEREVENT;
1012 event.user = userevent;
1013
1014 ticks++;
1015 loadingticks++;
1016 SDL_PushEvent(&event);
1017 return (interval);
1018}
1019
1020/*-------------------------------------------------------------------------------
1021

Callers 1

handleEventsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected