From d89deb2d951af7865a85c6a557e1dc00d2dfdff5 Mon Sep 17 00:00:00 2001 From: Christoph Haag Date: Tue, 5 Oct 2021 19:13:23 +0200 Subject: [PATCH] xrt: Add vive tracker interaction profile enum values Introduces a generic device name only used for bindings. --- src/xrt/include/xrt/xrt_defines.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/xrt/include/xrt/xrt_defines.h b/src/xrt/include/xrt/xrt_defines.h index 6be812d6f..eb829638a 100644 --- a/src/xrt/include/xrt/xrt_defines.h +++ b/src/xrt/include/xrt/xrt_defines.h @@ -610,6 +610,7 @@ enum xrt_device_name // Vive stuff. XRT_DEVICE_VIVE_PRO, XRT_DEVICE_VIVE_WAND, + XRT_DEVICE_VIVE_TRACKER, // Generic, only used for bindings. XRT_DEVICE_VIVE_TRACKER_GEN1, XRT_DEVICE_VIVE_TRACKER_GEN2, XRT_DEVICE_VIVE_TRACKER_GEN3, @@ -933,6 +934,16 @@ enum xrt_input_name XRT_INPUT_ML2_CONTROLLER_AIM_POSE = XRT_INPUT_NAME(0x0209, POSE), XRT_INPUT_ML2_CONTROLLER_SHOULDER_CLICK = XRT_INPUT_NAME(0x020A, BOOLEAN), + XRT_INPUT_VIVE_TRACKER_SYSTEM_CLICK = XRT_INPUT_NAME(0x0210, BOOLEAN), + XRT_INPUT_VIVE_TRACKER_MENU_CLICK = XRT_INPUT_NAME(0x0211, BOOLEAN), + XRT_INPUT_VIVE_TRACKER_TRIGGER_CLICK = XRT_INPUT_NAME(0x0212, BOOLEAN), + XRT_INPUT_VIVE_TRACKER_SQUEEZE_CLICK = XRT_INPUT_NAME(0x0213, BOOLEAN), + XRT_INPUT_VIVE_TRACKER_TRIGGER_VALUE = XRT_INPUT_NAME(0x0214, VEC1_ZERO_TO_ONE), + XRT_INPUT_VIVE_TRACKER_TRACKPAD = XRT_INPUT_NAME(0x0215, VEC2_MINUS_ONE_TO_ONE), + XRT_INPUT_VIVE_TRACKER_TRACKPAD_CLICK = XRT_INPUT_NAME(0x0216, BOOLEAN), + XRT_INPUT_VIVE_TRACKER_TRACKPAD_TOUCH = XRT_INPUT_NAME(0x0217, BOOLEAN), + XRT_INPUT_VIVE_TRACKER_GRIP_POSE = XRT_INPUT_NAME(0x0218, POSE), + XRT_INPUT_PSSENSE_PS_CLICK = XRT_INPUT_NAME(0x0300, BOOLEAN), XRT_INPUT_PSSENSE_SHARE_CLICK = XRT_INPUT_NAME(0x0301, BOOLEAN), XRT_INPUT_PSSENSE_OPTIONS_CLICK = XRT_INPUT_NAME(0x0302, BOOLEAN), @@ -1133,6 +1144,8 @@ enum xrt_output_name XRT_OUTPUT_NAME_ML2_CONTROLLER_VIBRATION = XRT_OUTPUT_NAME(0x00B0, VIBRATION), XRT_OUTPUT_NAME_PSSENSE_VIBRATION = XRT_OUTPUT_NAME(0x00C0, VIBRATION), + + XRT_OUTPUT_NAME_VIVE_TRACKER_HAPTIC = XRT_OUTPUT_NAME(0x00D0, VIBRATION), // clang-format on };