Hi, For SDL2 this ...
> > +static int idle_counter; ... should be store in ... > > void sdl2_poll_events(struct sdl2_console *scon) ... sdl2_console, otherwise it will not work as intended in case multiple windows are present. Otherwise looks fine to me. cheers, Gerd