3
SDL 2.0中是否存在SDL_ACTIVEEVENT等效項?我們如何處理SDL_APPMOUSEFOCUS和SDL_APPINPUTFOCUS?SDL 2.0中的SDL_ACTIVEEVENT等效嗎?
SDL 2.0中是否存在SDL_ACTIVEEVENT等效項?我們如何處理SDL_APPMOUSEFOCUS和SDL_APPINPUTFOCUS?SDL 2.0中的SDL_ACTIVEEVENT等效嗎?
SDL2的SDL_WindowEvent
:
SDL_APPMOUSEFOCUS
映射到SDL_WINDOWEVENT_ENTER
和SDL_WINDOWEVENT_LEAVE
SDL_APPINPUTFOCUS
映射到SDL_WINDOWEVENT_FOCUS_GAINED
和SDL_WINDOWEVENT_FOCUS_LOST
。