Simplify mouse input and touch input