SDL 2.0 中是否有等效的 SDL_ACTIVEEVENT?我们如何处理 SDL_APPMOUSEFOCUS 和 SDL_APPINPUTFOCUS?
问问题
1918 次
1 回答
7
SDL2 SDL_WindowEvent
:
SDL_APPMOUSEFOCUS
映射到SDL_WINDOWEVENT_ENTER
和SDL_WINDOWEVENT_LEAVE
SDL_APPINPUTFOCUS
映射到SDL_WINDOWEVENT_FOCUS_GAINED
和SDL_WINDOWEVENT_FOCUS_LOST
。
于 2013-10-07T13:17:36.337 回答