Detect touch-capable devices and use appropriate events.