implemented touch input for all three platforms