Simulated Reality SDK 7500c78d v1.30.2.51085 2024-04-26T11:23:03Z
Stable
gesture.h
Go to the documentation of this file.
1
10#pragma once
11#include <stdint.h>
12#include "sr/types.h"
13
14#ifdef __cplusplus
15enum SR_gestureType : uint64_t {
20};
21#else
22typedef uint64_t SR_gestureType;
23#endif
24
30typedef struct {
31 uint64_t frameId;
32 uint64_t time;
SR_gestureType
Definition: gesture.h:15
@ SwipeGesture
Definition: gesture.h:17
@ GrabGesture
Definition: gesture.h:18
@ TapGesture
Definition: gesture.h:16
@ ReleaseGesture
Definition: gesture.h:19
C-compatible struct notifying the listener that a gesture has been performed by the user.
Definition: gesture.h:30
uint64_t time
Time since epoch in microseconds.
Definition: gesture.h:32
SR_gestureType type
Type of gesture.
Definition: gesture.h:34
SR_point3d position
Absolute positions where the gesture occured.
Definition: gesture.h:33
uint64_t frameId
Autoincrement frame number.
Definition: gesture.h:31
C-compatible 3d double vector representation.
Definition: types.h:81