Listener (Str pool)  :  Thing (), poolname (pool)
    {   page = 0;

        ParticipateInPool (poolname);
        INFORM ("Participating in pool '" + poolname + "'");

        //  Here we listen only for the exact descrip that we want
        ListenForDescrip ("image-request");
        INFORM ("Listening for any proteins with descrip 'image-request'");
    }
Example #2
0
 Splash (Str const& output_pool)
   :  Thing (),
      pool (output_pool),
      listener (*this),
      controller (listener),
      stop_depositing (false)
 { ParticipateInPool (pool);
   controller . enableGesture (Leap::Gesture::TYPE_CIRCLE);
   controller . enableGesture (Leap::Gesture::TYPE_SWIPE);
   controller . enableGesture (Leap::Gesture::TYPE_SCREEN_TAP);
   controller . enableGesture (Leap::Gesture::TYPE_KEY_TAP);
   controller . setPolicyFlags (Leap::Controller::POLICY_BACKGROUND_FRAMES);
 }