Thanks - yes, I guess having everything 'just work' was a bit hopeful of me!
I'll have to have a think then, but I feel like the 'layout' is something that would make this easier if apps needed changing anyway, and would help a lot of people going forward too.
Strange about the fake button behaviour though.
In terms of swipe, presumably it's not specifically the single event, but the series of coordinates so you can do scrolling/etc? If so, since the events happen alongside the touch events, maybe we could just extend E.touch with some extra fields that signify if there's a swipe/etc? like:
E.on('touch', e=> {
if (e.swipe=="down") // ...
});
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.
Thanks - yes, I guess having everything 'just work' was a bit hopeful of me!
I'll have to have a think then, but I feel like the 'layout' is something that would make this easier if apps needed changing anyway, and would help a lot of people going forward too.
Strange about the fake button behaviour though.
In terms of swipe, presumably it's not specifically the single event, but the series of coordinates so you can do scrolling/etc? If so, since the events happen alongside the touch events, maybe we could just extend
E.touch
with some extra fields that signify if there's a swipe/etc? like: