Gestures
Every gesture is a short G-code sequence. The Z axis carries the stylus: M3 S12 lowers it to
touch the glass, M3 S0 lifts it. G4 P<seconds> dwells; G0/G1 move.
Single tap
Section titled “Single tap”Move to the target, drop for 50–100 ms, lift.
G0 X.. Y.. ; move to targetM3 S12 ; stylus downG4 P0.05 ; dwell 50 msM3 S0 ; stylus upLong press
Section titled “Long press”Identical to a tap, but the dwell is held ~800 ms.
G0 X.. Y..M3 S12G4 P0.8 ; hold 800 msM3 S0Touch down at the start, move under load, lift at the end.
G0 X.. Y.. ; move to startM3 S12 ; stylus downG1 X.. Y.. F3000 ; drag to end at feed 3000M3 S0 ; stylus upDouble tap
Section titled “Double tap”Two taps with a short gap (< 300 ms between touches).
; tapM3 S12G4 P0.05M3 S0G4 P0.1 ; gap 100 ms; tapM3 S12G4 P0.05M3 S0Summary
Section titled “Summary”| Gesture | Down | Dwell | Move | Up |
|---|---|---|---|---|
| Tap | M3 S12 | P0.05 | — | M3 S0 |
| Long press | M3 S12 | P0.8 | — | M3 S0 |
| Swipe | M3 S12 | — | G1 F3000 | M3 S0 |
| Double tap | ×2 | P0.05 | — | ×2 |