LeiaSR SDK 720218b2 v1.32.7.6322 2025-02-13T14:55:38Z
Stable
handevent.h
Go to the documentation of this file.
1
5#pragma once
6#include <stdint.h>
7#include "handpose.h"
8
9#ifdef __cplusplus
10enum SR_handEventType : uint64_t {
12 DestroyHand = 1
13};
14#else
15typedef uint64_t SR_handEventType;
16#endif
17
23typedef struct {
24 uint64_t frameId;
25 uint64_t time;
26 uint64_t handId;
29 uint64_t sender;
SR_handSide
Enum used to specify a left or right hand type pose.
Definition: handpose.h:16
SR_handEventType
Definition: handevent.h:10
@ CreateHand
Definition: handevent.h:11
@ DestroyHand
Definition: handevent.h:12
C-compatible struct notifying the listener that the state of a hand has changed.
Definition: handevent.h:23
uint64_t frameId
Autoincrement frame number.
Definition: handevent.h:24
uint64_t sender
SR::HandTracker* Is valid while the event is being handled.
Definition: handevent.h:29
uint64_t handId
Hand identifier.
Definition: handevent.h:26
uint64_t time
Time from epoch in microseconds.
Definition: handevent.h:25
SR_handSide side
Left or right hand.
Definition: handevent.h:27
SR_handEventType eventType
Type of hand event.
Definition: handevent.h:28