From 1f021a6eda300cf2dcb13e0793b0db54ea7ddf45 Mon Sep 17 00:00:00 2001 From: Christoph Haag Date: Tue, 13 Oct 2020 19:27:16 +0200 Subject: [PATCH] xrt: Add defines for minimum haptic frequency and unspecified haptic frequency --- src/xrt/include/xrt/xrt_defines.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/xrt/include/xrt/xrt_defines.h b/src/xrt/include/xrt/xrt_defines.h index f180efe89..f15d2134f 100644 --- a/src/xrt/include/xrt/xrt_defines.h +++ b/src/xrt/include/xrt/xrt_defines.h @@ -701,6 +701,22 @@ enum xrt_output_name // clang-format on }; +/*! + * Value used to indicate a haptic pulse of the minimal supported duration. + * + * @ingroup xrt_iface + */ +#define XRT_MIN_HAPTIC_DURATION -1 + +/*! + * Value used to indicate a haptic pulse of some runtime defined optimal + * frequency. + * + * @ingroup xrt_iface + */ + +#define XRT_FREQUENCY_UNSPECIFIED 0 + /*! * A union of all output types. *