Where should the main event loop be located? Model, View, Controller? Or maybe, generally from the outside, in the maine? Or in another class that MVC encapsulates?
How correct?
upd: Answering the comment, why is it needed in MVC: I need it for the reason that I personally do not understand how to organize logic in MVC and applications with GUI in general. In my understanding, somewhere in the code there must be something in the spirit
while(true) { while(app.EventHappened()) { if (app.LastEvent() == App::Event::Click()) { doSomeLogic(); } } app.display(); } In any case, I suppose that this can be done at least in MVC. The question is where to shove it so that it is correct from the point of view of architecture.