How is event driven programming implemented? Is it just a while loop which checks for all activated / needed / possible events?
while( user did not exit )
{
if ( bla bla happened )
start function //event
//same crap for another event
...
}
This seems really wrong to me. An event driven program shouldn't do anything until the event has been activated, right? This would just loop and loop.. probably the cpu would go higher and higher.
I couldn't find any implementation code on the internet.