refactor: replace pinch gesture with fist gesture

This commit is contained in:
Tom Boullay
2026-04-29 10:34:11 +02:00
parent 28e3ac4c06
commit cc4c11f934
9 changed files with 69 additions and 26 deletions
+4 -2
View File
@@ -10,11 +10,12 @@ export interface HandTrackingHand {
z: number;
landmarks: HandTrackingLandmark[];
handedness: string;
isPinch: boolean;
pinchDistance: number;
isFist: boolean;
score: number;
}
export type HandTrackingUsageStatus = "inactive" | "available" | "active";
export type HandTrackingStatus =
| "idle"
| "requesting_camera"
@@ -28,6 +29,7 @@ export type HandTrackingStatus =
export interface HandTrackingSnapshot {
hands: HandTrackingHand[];
status: HandTrackingStatus;
usageStatus: HandTrackingUsageStatus;
serverStatus: string | null;
error: string | null;
}