runloop.c - Create input_flush function