Add support for touch and mouse events