While not a perfect solution, a simulation of, say a twist event, could be pre-determined/coded such that either a Touch event or as an interval/timeout end occurs, that code block would then execute, emulating the physical event.
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.
While not a perfect solution, a simulation of, say a twist event, could be pre-determined/coded such that either a Touch event or as an interval/timeout end occurs, that code block would then execute, emulating the physical event.