Bind canvas input either to mouse or touch