The 'type' is from the Bangle.js 2 touchscreen controller, but I'm afraid it's not in the emulator, and won't be on Bangle.js 1.
I guess if you want to do that you need to compare the time differences between the press+release events
Do you know about code/apps already controlling time between press+release events? Does it require to work at pin level?
@Gordon 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.
The 'type' is from the Bangle.js 2 touchscreen controller, but I'm afraid it's not in the emulator, and won't be on Bangle.js 1.
I guess if you want to do that you need to compare the time differences between the press+release events