Aaah, the full blown solution in the making
If you want it to cover everything and be resilient against firmware upgrades that move stuff around, you'd have to let the user define arbitrary events and do their own touch recordings for them. But that's probably overthinking it.