void add_input_hook(function|object new)
Adds a function to the input hook, making all user data be fed into the function.
remove_input_hook