Archived
1
This repository has been archived on 2021-06-01. You can view files and clone it, but cannot push or open issues or pull requests.
OpenDepthMap/libodm/cpp/listener.cc

28 lines
755 B
C++

class LeapEventListener : public Listener
{
public:
virtual void onConnect(const Controller &);
virtual void onDisconnect(const Controller &);
virtual void onFrame(const Controller &);
};
void LeapEventListener::onConnect(const Controller &controller)
{
// std::cout << "LeapMotion Controller: Connected" << std::endl;
}
//Not dispatched when running in a debugger
void LeapEventListener::onDisconnect(const Controller &controller)
{
// std::cout << "LeapMotion Controller: Disconnected" << std::endl;
}
void LeapEventListener::onFrame(const Controller &controller)
{
// std::cout << "New frame available" << std::endl;
// Frame frame = controller.frame();
// // Get the camera images
// images = frame.images();
}