LeiaSR SDK 720218b2 v1.32.7.6322 2025-02-13T14:55:38Z
Stable
gesture.h
Go to the documentation of this file.
1
5#pragma once
6#include <stdint.h>
7#include "sr/types.h"
8
9#ifdef __cplusplus
10enum SR_gestureType : uint64_t {
15};
16#else
17typedef uint64_t SR_gestureType;
18#endif
19
25typedef struct {
26 uint64_t frameId;
27 uint64_t time;
SR_gestureType
Definition: gesture.h:10
@ SwipeGesture
Definition: gesture.h:12
@ GrabGesture
Definition: gesture.h:13
@ TapGesture
Definition: gesture.h:11
@ ReleaseGesture
Definition: gesture.h:14
C-compatible struct notifying the listener that a gesture has been performed by the user.
Definition: gesture.h:25
uint64_t time
Time since epoch in microseconds.
Definition: gesture.h:27
SR_gestureType type
Type of gesture.
Definition: gesture.h:29
SR_point3d position
Absolute positions where the gesture occured.
Definition: gesture.h:28
uint64_t frameId
Autoincrement frame number.
Definition: gesture.h:26
C-compatible 3d double vector representation.
Definition: types.h:73