to review detourdinput_emulation.cpp and detourmessage_emulation.cpp