Simulated Reality SDK 7500c78d v1.30.2.51085 2024-04-26T11:23:03Z
Stable
handtrackers_c.h
Go to the documentation of this file.
1
10#ifndef HANDTRACKERS_C_H
11#define HANDTRACKERS_C_H
12
13#include "sr/core_c.h"
14
17
18typedef void* SR_handTracker;
19typedef void* SR_handPoseListener;
21
22#ifdef WIN32
23#ifdef __cplusplus
24# ifdef COMPILING_DLL_SimulatedRealityHandTrackers
25# define SRAPI extern "C" __declspec(dllexport)
26# else
27# define SRAPI extern "C" __declspec(dllimport)
28# endif
29#else
30# ifdef COMPILING_DLL_SimulatedRealityHandTrackers
31# error Trying to compile SimulatedRealityHandTrackers.dll using a non-C++ compiler! Use a C++ compiler instead!
32# else
33# define SRAPI __declspec(dllimport)
34# endif
35#endif
36#else
37# define SRAPI
38#endif
39
52
62SRAPI SR_handPoseListener createHandPoseListener(SR_handTracker handTracker, void (*acceptHandPoseCallback)(SR_handPose));
63
72
82SRAPI SR_handEventListener createHandEventListener(SR_handTracker handTracker, void (*acceptHandEventCallback)(SR_handEvent));
83
92
93#undef SRAPI
94
95#endif // HANDTRACKERS_C_H
void * SRContext
Definition: admin_c.h:15
SRAPI SR_handEventListener createHandEventListener(SR_handTracker handTracker, void(*acceptHandEventCallback)(SR_handEvent))
Create a new callback function to listen to a specific handtracker.
SRAPI void deleteHandPoseListener(SR_handPoseListener handPoseListener)
Cleans up underlying object instances used to facilitate hand pose update callbacks.
SRAPI SR_handPoseListener createHandPoseListener(SR_handTracker handTracker, void(*acceptHandPoseCallback)(SR_handPose))
Create a new callback function to listen to a specific handtracker.
SRAPI SR_handTracker createHandTracker(SRContext context)
Creates a functional HandTracker instance.
SRAPI void deleteHandEventListener(SR_handEventListener handEventListener)
Cleans up underlying object instances used to facilitate hand event update callbacks.
#define SRAPI
Definition: handtrackers_c.h:37
void * SR_handTracker
Definition: handtrackers_c.h:18
void * SR_handPoseListener
Definition: handtrackers_c.h:19
void * SR_handEventListener
Definition: handtrackers_c.h:20
C-compatible struct notifying the listener that the state of a hand has changed.
Definition: handevent.h:28
C-compatible struct containing the pose of a hand.
Definition: handpose.h:124