Added support for touch input.