add the third parameter for callback of InputManager