One way I've done this is to read the position of the users touch point and use if-statements to choose between entries.
Something like:
if (50 < event.y && event.y < 100) { open first entry } else if (100 <= event.y && event.y < 150) { open second entry } ....
I've done this here in a custom setUI (line 106) starting on line 117.
Thanks a ton! I shall look into this.
@Ganblejs started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
One way I've done this is to read the position of the users touch point and use if-statements to choose between entries.
Something like:
I've done this here in a custom setUI (line 106) starting on line 117.