SDL

    xiaoxiao2021-12-14  20

    void SDL_SetEventFilter(SDL_EventFilter filter);

    注册回调按键处理函数, filter为按键处理函数

    当调用SDL_PollEvent/SDL_WaitEvent函数探测到事件来会自动调用filter函数

    此方法获取事件可不用创建线程,但是要用到全局变量

    http://blog.csdn.net/rootusers/article/details/41007011

    http://biancheng.dnbcw.info/c/248551.html

    C++学习:

    http://edu.csdn.net/course/detail/2901

    转载请注明原文地址: https://ju.6miu.com/read-969904.html

    最新回复(0)