Add touch event support for latency and jank examples.