.pio/libdeps/m5stack-core2/M5Core2/examples/Touch/TouchGoal/Goals.cpp
void DragFromBackgroundtoBGoal::event_handler(Event& e) {
  if(E_DRAGGED == e) can_succeed = false;
  if(E_RELEASE == e) {
    if(M5.background.contains(e.from) && !A.contains(e.from) && !B.contains(e.from) && B.contains(e.to)) success = can_succeed;
  }
}
// You don't get an E_DRAGGED event if you start in the background, so return an error if one comes in.
You don't get an E_DRAGGED event if you start in the background, so return an error if one comes in.
You don ' t get an E_DRAGGED event if you start in the background so return an error if one comes in .
void DragFromBackgroundtoBGoal::event_handler(Event& e) {
  if(E_DRAGGED == e) can_succeed = false;
  if(E_RELEASE == e) {
    if(M5.background.contains(e.from) && !A.contains(e.from) && !B.contains(e.from) && B.contains(e.to)) success = can_succeed;
  }
}
void DragFromBackgroundtoBGoal :: event_handler ( Event & e ) { if ( E_DRAGGED == e ) can_succeed = false ; if ( E_RELEASE == e ) { if ( M5 . background . contains ( e . from ) && ! A . contains ( e . from ) && ! B . contains ( e . from ) && B . contains ( e . to ) ) success = can_succeed ; } }
You don't get an E_DRAGGED event if you start in the background, so return an error if one comes in.
You don ' t get an E_DRAGGED event if you start in the background so return an error if one comes in .