Add LooperWithTime.
Fix Bug: Change Lambda Capture from "&" (Keep Reference) to "=" (Copy).
Before this fix, the following code will cause a runtime error:
int AppMain()
{
Window wnd("Title", 1280, 768);
Renderer rnd = wnd.getRenderer();
Looper lp;
lp + make_pair(SDL_QUIT, []() {printf("Quit!\n");});
lp.run();
return 0;
}
Now, the bug is fixed~!