So try to manage events at begin of main loopOriginally Posted by DarknessX
and also addCode://declare event: TSDL_Event; // sdl event procedure Manageinput; begin while SDL_PollEvent(@event) > 0 do if event.type_ = SDL_QUITEV then dosomething; end; end;
to end of main loopCode:SDL_Delay(35);
Bookmarks