![]() |
3Gear Systems SDK
v0.9.34
|
Messages relating to pressing, releasing, dragging and moving of each hand. More...
#include <HandTrackingMessage.h>
Public Member Functions | |
PinchMessage (const MessageType type, const Hand hand, const Vector3f &positionLeft, const Quaternionf &rotationLeft, const int clickCountLeft, const Vector3f &positionRight, const Quaternionf &rotationRight, const int clickCountRight) | |
Constructs a PinchMessage. Should not generally be called by users of the API. | |
const Hand | getHand () const |
std::string | serialize () const |
Additional Inherited Members |
Messages relating to pressing, releasing, dragging and moving of each hand.
Pinch messages are always a single hand at a time. That is, if the user pinches left and right simultaneously, you will still get two separate PRESS messages (one for the right and one for the left). As a result, there is less lag for pinch messages (which can be reported as soon as they happen) than for the "higher-level" BimanualPinchMessage messages.
Note that we do not recommend responding to both the PinchMessage and the BimanualPinchMessage; applications should generally pick one or the other. Responding to both can lead to very confusing interactions (since most pinches will be detected at least twice).
|
inline |
|
virtual |
Serializes the message to a string, which could then be output over the network.
Reimplemented from HandTrackingClient::BasicMessage.