I'm using a long stick to represent pen. The document said that if there is a pen, I can use istool(), isfinger() to judge if it's a pen or finger. But leap motion always recognize my stick as a pen.
I have tried Desktop mode and HMD mode but neigher work.
Please help me.
Frame m_currentFrame;
void GetHandTool()
{
for (int i = 0;i < m_currentFrame.pointables().count();i++)
{
auto pointable = m_currentFrame.pointables()[i];
if (pointable.isFinger())
std::cout << "finger" << std::endl;
if (pointable.isTool()) {
std::cout << "tool" << std::endl;
}
}