Carbon Programming/Handling events

Event loop edit

The event loop is started with one function call:

  • RunApplicationEventLoop();

The event loop will process events as long as the application is running. To exit the event loop, call QuitApplicationEventLoop().


Registering events edit

  • InstallEventHandler () - Creates an event handler for the application.
  • AddEventTypesToHandler() - Adds an event used by the handler.