SDL Event
lastmod 2026-11-10created 2015-06-172 edits
SDL_Event는 SDL 에서 키보드, 마우스, 창, 조이스틱 등 서로 다른 종류의 이벤트 구조체를 하나로 묶은 공용체(union)다. type 필드로 이벤트 종류를 확인한 뒤 key, motion, window 같은 해당 멤버에 접근한다. SDL_PollEvent() 나 SDL_WaitEvent() 로 큐에서 꺼내며 게임 루프 입력 처리의 핵심이다.
A union that contains structures for the different event types.