Skip to content

Commit

Permalink
Swap roles of open and closed hand in Leap Motion shuttle control.
Browse files Browse the repository at this point in the history
  • Loading branch information
ddennedy committed Sep 18, 2014
1 parent 1b3fda7 commit 1efb00c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/leapnetworklistener.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ void LeapNetworkListener::onMessage(const QString &s)
}
else if (frame["hands"].isArray() && frame["hands"].toArray().count() > 0) {
QJsonObject hand = frame["hands"].toArray().first().toObject();
if (frame["pointables"].toArray().count() <= 1) {
if (frame["pointables"].toArray().count() > 1) {
if (hand["palmPosition"].isArray() && frame["interactionBox"].isObject()) {
double x = hand["palmPosition"].toArray().first().toDouble();
QJsonValue center = frame["interactionBox"].toObject()["center"];
Expand Down

0 comments on commit 1efb00c

Please sign in to comment.