5

SDL 2.0 中是否有等效的 SDL_ACTIVEEVENT?我们如何处理 SDL_APPMOUSEFOCUS 和 SDL_APPINPUTFOCUS?

4

1 回答 1

7

SDL2 SDL_WindowEvent

  • SDL_APPMOUSEFOCUS映射到SDL_WINDOWEVENT_ENTERSDL_WINDOWEVENT_LEAVE

  • SDL_APPINPUTFOCUS映射到SDL_WINDOWEVENT_FOCUS_GAINEDSDL_WINDOWEVENT_FOCUS_LOST

于 2013-10-07T13:17:36.337 回答