to add __AllocateInputEvents into ioinject_thread.cpp