Well, I mean, you would typically do one of these, but most likely never both at the same time:
- receive input in the on_input() function and then modify some variable (eg speed in direction corresponding to the received input) and manually move the game object in the update function (don’t forget to use dt!)
or
- receive input in the on_input() function and start an animation (eg animation to the touch/click point) and let the system move the game object.