| Algorithm 4 Algorithm for dwell time detection. |
| Input: data frame from Leap Motion as L |
| 1: set |
| 2: while do |
| 3: |
| 4: end while⟶ A |
| 5: calculate smoothing () |
| 6: calculate slope finding (-) and (+) |
| 7: compute thresholding ⟶ suppress noise |
| 8: compute find zero |