use palm for close/far threshold

This commit is contained in:
Patrick Nicolas
2025-11-13 21:48:10 +01:00
parent 1f3e7d7b86
commit c12d16ef86
2 changed files with 18 additions and 5 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ constexpr float scroll_ratio = 10;
constexpr float trigger_click_thd = 0.8;
// Thresholds on the distance between the fingertip and GUI layers (positive: in front of the GUI, negative: behind the GUI)
constexpr float fingertip_distance_close_thd = 0.15; // Distance to switch between touch and aim interaction
constexpr float palm_distance_close_thd = 0.20; // Distance to switch between touch and aim interaction
constexpr float fingertip_distance_touching_thd_hi = -0.01; // Distance to register a click
constexpr float fingertip_distance_touching_thd_lo = -0.15; // Distance to register a click
constexpr float fingertip_distance_stick_thd = -0.02; // Max distance where the fingertip is moved to be on the GUI