Simulated Reality SDK 7500c78d v1.30.2.51085 2024-04-26T11:23:03Z
Stable
handevent.h
Go to the documentation of this file.
1
10#pragma once
11#include <stdint.h>
12#include "handpose.h"
13
14#ifdef __cplusplus
15enum SR_handEventType : uint64_t {
17 DestroyHand = 1
18};
19#else
20typedef uint64_t SR_handEventType;
21#endif
22
28typedef struct {
29 uint64_t frameId;
30 uint64_t time;
31 uint64_t handId;
34 uint64_t sender;
SR_handSide
Enum used to specify a left or right hand type pose.
Definition: handpose.h:21
SR_handEventType
Definition: handevent.h:15
@ CreateHand
Definition: handevent.h:16
@ DestroyHand
Definition: handevent.h:17
C-compatible struct notifying the listener that the state of a hand has changed.
Definition: handevent.h:28
uint64_t frameId
Autoincrement frame number.
Definition: handevent.h:29
uint64_t sender
SR::HandTracker* Is valid while the event is being handled.
Definition: handevent.h:34
uint64_t handId
Hand identifier.
Definition: handevent.h:31
uint64_t time
Time from epoch in microseconds.
Definition: handevent.h:30
SR_handSide side
Left or right hand.
Definition: handevent.h:32
SR_handEventType eventType
Type of hand event.
Definition: handevent.h:33