to clean code for detourdinput_emulation.cpp