input_generator: add a API to set touch count