#include "BALConfiguration.h" #include "BIEventLoop.h" // creation BIEventLoop* aEventLoop = createBCEventLoop(); // waiting BIEvent* event; aEventLoop->WaitEvent(event);
It is important to note that, to receive input and window events, you need a window. To create it :
BIWindow* aWindow = createBCWindowBal(0,0,800,600,32);
See Windowing for more details.