jpzm/wii88

Keyboard stops to work

Closed this issue · 2 comments

jpzm commented

The USB keyboard stops to work after using Wii Remote for a while. This was verified in release 0.1.0 (revision 9d587a6).

jpzm commented

The problem seems to be related to some misuse of SDL_PumpEvent() and SDL_PeepEvent() in src/SDL/event.c. In the attached patch (for revision 61d5e43) I used the SDL_PollEvent(), which is recommended in SDL documentation, instead of SDL_PumpEvent() and SDL_PeepEvent(). It seems to solve the problem.

patch-wii88-issue-1.txt

jpzm commented

Fixed in revision 12bb2ca using the proposed solution.