/** * Call this in the "mouse down" handler. * * @return true if a double click was detected */ bool Check(RasterPoint _location) { const bool result = !clock.CheckAlwaysUpdate(INTERVAL_MS) && manhattan_distance(location, _location) <= MAX_DISTANCE_PX; location = _location; return result; }