Try the live demo at https://iaik.github.io/interruptjs/
- Load the page (either on a mobile device or on your computer) - the PIN pad has no function, don't worry if it doesn't do anything.
- Press "Start"
- Interact with your touch screen (tap, swipe), type, or click with your mouse.
- Press "Stop"
- A trace appears where you should be able to see every event (tap, swipe, click, ...) you issued as a peak - either upwards or downwards, depending on your device.
- If you don't see anything, try again by clicking on "Restart"
A trace might look something like this:
|Xiaomi Redmi Note 3||Google Nexus 5|
|Touch 2x, Swipe, Touch 3x||Touch 2x, Swipe, Touch 3x|
We tested the code in Chrome and Firefox on both Android and Ubuntu. The code should work on every modern browser and any operating system using interrupts for I/O (that is virtually every operating system).