Added allegro event management to widgets.