/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "PointerEvent.h" namespace facebook { namespace react { #if RN_DEBUG_STRING_CONVERTIBLE std::string getDebugName(PointerEvent const &pointerEvent) { return "PointerEvent"; } std::vector getDebugProps( PointerEvent const &pointerEvent, DebugStringConvertibleOptions options) { return { {"pointerId", getDebugDescription(pointerEvent.pointerId, options)}, {"pressure", getDebugDescription(pointerEvent.pressure, options)}, {"pointerType", getDebugDescription(pointerEvent.pointerType, options)}, {"clientPoint", getDebugDescription(pointerEvent.clientPoint, options)}, {"target", getDebugDescription(pointerEvent.target, options)}, {"timestamp", getDebugDescription(pointerEvent.timestamp, options)}, }; } #endif } // namespace react } // namespace facebook