# Touch test example

**URL:** <https://forum.electra.one/t/touch-test-example/2895>\
**Category:** Developers\
**Created:** [May 4, 2024, 8:51pm UTC](https://forum.electra.one/t/touch-test-example/2895 "2024-05-04T20:51:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![oldgearguy](https://avatars.discourse-cdn.com/v4/letter/o/f4b2a3/32.png) [@oldgearguy](https://forum.electra.one/u/oldgearguy)\
**Post date:** [May 4, 2024, 8:51pm UTC](https://forum.electra.one/t/touch-test-example/2895/1 "2024-05-04T20:51:37Z")

</div>

[Some touch testing](https://app.electra.one/preset/98Rmb7ZofT46eR195hk9)

First of all, any inputs from @martin or anyone else to clean up weirdness, x,y values, min/max, etc in here would be appreciated.

I’m using some (probably not 100% correct) math to figure out which control is being touched.  
But - the idea is to map touches to controls. Also - pot touches are ignored for this test.

The character naming at the bottom shows that if you touch the “Char” control, it cycles through upper case, lower case, numbers, specials. A smarter version might remember where you where in the last set (like you went from E to k to 7 and then when you cycle back to upper case you’re still on E).
