LeiaSR SDK 720218b2 v1.32.7.6322 2025-02-13T14:55:38Z
Stable
handtrackers_c.h
Go to the documentation of this file.
1
5#ifndef HANDTRACKERS_C_H
6#define HANDTRACKERS_C_H
7
8#include "sr/core_c.h"
9
12
13typedef void* SR_handTracker;
14typedef void* SR_handPoseListener;
16
17#ifdef WIN32
18#ifdef __cplusplus
19# ifdef COMPILING_DLL_SimulatedRealityHandTrackers
20# define SRAPI extern "C" __declspec(dllexport)
21# else
22# define SRAPI extern "C" __declspec(dllimport)
23# endif
24#else
25# ifdef COMPILING_DLL_SimulatedRealityHandTrackers
26# error Trying to compile SimulatedRealityHandTrackers.dll using a non-C++ compiler! Use a C++ compiler instead!
27# else
28# define SRAPI __declspec(dllimport)
29# endif
30#endif
31#else
32# define SRAPI
33#endif
34
47
57SRAPI SR_handPoseListener createHandPoseListener(SR_handTracker handTracker, void (*acceptHandPoseCallback)(SR_handPose));
58
67
77SRAPI SR_handEventListener createHandEventListener(SR_handTracker handTracker, void (*acceptHandEventCallback)(SR_handEvent));
78
87
88#undef SRAPI
89
90#endif // HANDTRACKERS_C_H
void * SRContext
Definition: admin_c.h:10
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:32
void * SR_handTracker
Definition: handtrackers_c.h:13
void * SR_handPoseListener
Definition: handtrackers_c.h:14
void * SR_handEventListener
Definition: handtrackers_c.h:15
C-compatible struct notifying the listener that the state of a hand has changed.
Definition: handevent.h:23
C-compatible struct containing the pose of a hand.
Definition: handpose.h:119