Simulated Reality SDK 7500c78d v1.30.2.51085 2024-04-26T11:23:03Z
Stable
|
Stream of SR_handEvent objects. More...
#include <handeventstream.h>
Public Types | |
using | Frame = SR_handEvent |
Public Member Functions | |
HandEventStream (HandTracker *sense, HandEventListener *listener) | |
Construct a new HandEventStream. More... | |
void | stopListening () |
Stop listening and notify sense to stop sending new frames. (Called by listener) More... | |
void | close () |
Close the stream. (Called by sense) More... | |
void | update (Frame handEvent) |
Send new frame to listener. More... | |
Stream of SR_handEvent objects.
Connects a HandTracker Sense to a HandEventListener object.
SR::HandEventStream::HandEventStream | ( | HandTracker * | sense, |
HandEventListener * | listener | ||
) |
Construct a new HandEventStream.
sense | refers to the HandTracker providing updates |
listener | refers to the HandEventListener receiving updates |
Called by the HandTracker when requested for an HandEventListener through an openHandEventStream call.
void SR::HandEventStream::close | ( | ) |
Close the stream. (Called by sense)
void SR::HandEventStream::stopListening | ( | ) |
Stop listening and notify sense to stop sending new frames. (Called by listener)
void SR::HandEventStream::update | ( | Frame | handEvent | ) |
Send new frame to listener.
handEvent | represents a single update |