Commit Graph

10 Commits

Author SHA1 Message Date
52cb15482e More Event Functions 2017-05-22 19:07:26 +08:00
bb563d069d Change decltype to typedef. 2017-05-08 15:42:54 +08:00
7cab64132d Add more support for Event Handling. 2017-05-08 14:17:42 +08:00
a33a27dbb0 Add More Event Handling Functions.
Remove Debug Message in _global_timer_executor...
2017-05-05 17:28:11 +08:00
f4c629393b Fix compile warning generated by VC.
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~!
2017-05-02 22:40:30 +08:00
2ecddc44e7 Add Poller
Add implement of Looper::operator -
2017-05-02 20:51:56 +08:00
d18fcf385d Rewrite Event Looper 2017-05-02 19:05:48 +08:00
64ec1cfa42 Add Event Looper 2017-05-02 13:37:03 +08:00
65c8b2e6ef Add Minimum Event Support 2017-05-02 12:59:57 +08:00
499c25ddd3 Remove Event Handling in main file 2017-04-04 09:49:18 +08:00