Add definitions for more interaction profiles
This commit is contained in:
+247
-27
@@ -110,10 +110,10 @@ static std::vector<interaction_profile> interaction_profiles{
|
||||
"/user/hand/left/input/squeeze/value",
|
||||
"/user/hand/left/input/trigger/value",
|
||||
"/user/hand/left/input/trigger/touch",
|
||||
"/user/hand/left/input/thumbrest/touch",
|
||||
"/user/hand/left/input/thumbstick",
|
||||
"/user/hand/left/input/thumbstick/click",
|
||||
"/user/hand/left/input/thumbstick/touch",
|
||||
"/user/hand/left/input/thumbrest/touch",
|
||||
|
||||
"/user/hand/right/input/a/click",
|
||||
"/user/hand/right/input/a/touch",
|
||||
@@ -128,6 +128,214 @@ static std::vector<interaction_profile> interaction_profiles{
|
||||
"/user/hand/right/input/thumbstick/touch",
|
||||
"/user/hand/right/input/thumbrest/touch",
|
||||
}},
|
||||
interaction_profile{
|
||||
" /interaction_profiles/facebook/touch_controller_pro",
|
||||
{"XR_FB_touch_controller_pro"},
|
||||
{
|
||||
"/user/hand/left/output/haptic",
|
||||
"/user/hand/left/output/haptic_trigger_fb",
|
||||
"/user/hand/left/output/haptic_thumb_fb",
|
||||
"/user/hand/right/output/haptic",
|
||||
"/user/hand/right/output/haptic_trigger_fb",
|
||||
"/user/hand/right/output/haptic_thumb_fb",
|
||||
|
||||
"/user/hand/left/input/grip/pose",
|
||||
"/user/hand/left/input/aim/pose",
|
||||
|
||||
"/user/hand/right/input/grip/pose",
|
||||
"/user/hand/right/input/aim/pose",
|
||||
|
||||
"/user/hand/left/input/x/click",
|
||||
"/user/hand/left/input/x/touch",
|
||||
"/user/hand/left/input/y/click",
|
||||
"/user/hand/left/input/y/touch",
|
||||
"/user/hand/left/input/menu/click",
|
||||
"/user/hand/left/input/squeeze/value",
|
||||
"/user/hand/left/input/trigger/value",
|
||||
"/user/hand/left/input/trigger/touch",
|
||||
"/user/hand/left/input/thumbstick",
|
||||
"/user/hand/left/input/thumbstick/click",
|
||||
"/user/hand/left/input/thumbstick/touch",
|
||||
"/user/hand/left/input/thumbrest/touch",
|
||||
"/user/hand/left/input/thumbrest/force",
|
||||
"/user/hand/left/input/stylus_fb/force",
|
||||
"/user/hand/left/input/trigger/curl_fb",
|
||||
"/user/hand/left/input/trigger/slide_fb",
|
||||
"/user/hand/left/input/trigger/proximity_fb",
|
||||
"/user/hand/left/input/thumb_fb/proximity_fb",
|
||||
|
||||
"/user/hand/right/input/a/click",
|
||||
"/user/hand/right/input/a/touch",
|
||||
"/user/hand/right/input/b/click",
|
||||
"/user/hand/right/input/b/touch",
|
||||
"/user/hand/right/input/system/click",
|
||||
"/user/hand/right/input/trigger/value",
|
||||
"/user/hand/right/input/trigger/touch",
|
||||
"/user/hand/right/input/thumbstick",
|
||||
"/user/hand/right/input/thumbstick/click",
|
||||
"/user/hand/right/input/thumbstick/touch",
|
||||
"/user/hand/right/input/thumbrest/touch",
|
||||
"/user/hand/right/input/thumbrest/force",
|
||||
"/user/hand/right/input/stylus_fb/force",
|
||||
"/user/hand/right/input/trigger/curl_fb",
|
||||
"/user/hand/right/input/trigger/slide_fb",
|
||||
"/user/hand/right/input/trigger/proximity_fb",
|
||||
"/user/hand/right/input/thumb_fb/proximity_fb",
|
||||
}},
|
||||
interaction_profile{
|
||||
" /interaction_profiles/meta/touch_pro_controller",
|
||||
{"XR_VERSION_1_1"},
|
||||
{
|
||||
"/user/hand/left/output/haptic",
|
||||
"/user/hand/left/output/haptic_trigger",
|
||||
"/user/hand/left/output/haptic_thumb",
|
||||
"/user/hand/right/output/haptic",
|
||||
"/user/hand/right/output/haptic_trigger",
|
||||
"/user/hand/right/output/haptic_thumb",
|
||||
|
||||
"/user/hand/left/input/grip/pose",
|
||||
"/user/hand/left/input/aim/pose",
|
||||
|
||||
"/user/hand/right/input/grip/pose",
|
||||
"/user/hand/right/input/aim/pose",
|
||||
|
||||
"/user/hand/left/input/x/click",
|
||||
"/user/hand/left/input/x/touch",
|
||||
"/user/hand/left/input/y/click",
|
||||
"/user/hand/left/input/y/touch",
|
||||
"/user/hand/left/input/menu/click",
|
||||
"/user/hand/left/input/squeeze/value",
|
||||
"/user/hand/left/input/trigger/value",
|
||||
"/user/hand/left/input/trigger/touch",
|
||||
"/user/hand/left/input/trigger/proximity",
|
||||
"/user/hand/left/input/trigger_curl/value",
|
||||
"/user/hand/left/input/trigger_slide/value",
|
||||
"/user/hand/left/input/thumb_resting_surfaces/proximity",
|
||||
"/user/hand/left/input/thumbstick",
|
||||
"/user/hand/left/input/thumbstick/click",
|
||||
"/user/hand/left/input/thumbstick/touch",
|
||||
"/user/hand/left/input/thumbrest/touch",
|
||||
"/user/hand/left/input/thumbrest/force",
|
||||
"/user/hand/left/input/stylus/force",
|
||||
|
||||
"/user/hand/right/input/a/click",
|
||||
"/user/hand/right/input/a/touch",
|
||||
"/user/hand/right/input/b/click",
|
||||
"/user/hand/right/input/b/touch",
|
||||
"/user/hand/right/input/system/click",
|
||||
"/user/hand/right/input/squeeze/value",
|
||||
"/user/hand/right/input/trigger/value",
|
||||
"/user/hand/right/input/trigger/touch",
|
||||
"/user/hand/right/input/trigger/proximity",
|
||||
"/user/hand/right/input/trigger_curl/value",
|
||||
"/user/hand/right/input/trigger_slide/value",
|
||||
"/user/hand/right/input/thumb_resting_surfaces/proximity",
|
||||
"/user/hand/right/input/thumbstick",
|
||||
"/user/hand/right/input/thumbstick/click",
|
||||
"/user/hand/right/input/thumbstick/touch",
|
||||
"/user/hand/right/input/thumbrest/touch",
|
||||
"/user/hand/right/input/thumbrest/force",
|
||||
"/user/hand/right/input/stylus/force",
|
||||
|
||||
}},
|
||||
interaction_profile{
|
||||
" /interaction_profiles/meta/touch_controller_plus",
|
||||
{"XR_META_touch_controller_plus"},
|
||||
{
|
||||
"/user/hand/left/output/haptic",
|
||||
"/user/hand/right/output/haptic",
|
||||
|
||||
"/user/hand/left/input/grip/pose",
|
||||
"/user/hand/left/input/aim/pose",
|
||||
|
||||
"/user/hand/right/input/grip/pose",
|
||||
"/user/hand/right/input/aim/pose",
|
||||
|
||||
"/user/hand/left/input/x/click",
|
||||
"/user/hand/left/input/x/touch",
|
||||
"/user/hand/left/input/y/click",
|
||||
"/user/hand/left/input/y/touch",
|
||||
"/user/hand/left/input/menu/click",
|
||||
"/user/hand/left/input/squeeze/value",
|
||||
"/user/hand/left/input/trigger/value",
|
||||
"/user/hand/left/input/trigger/touch",
|
||||
"/user/hand/left/input/thumbstick",
|
||||
"/user/hand/left/input/thumbstick/click",
|
||||
"/user/hand/left/input/thumbstick/touch",
|
||||
"/user/hand/left/input/thumbrest/touch",
|
||||
"/user/hand/left/input/thumb_meta/proximity_meta",
|
||||
"/user/hand/left/input/trigger/curl_meta",
|
||||
"/user/hand/left/input/trigger/slide_meta",
|
||||
"/user/hand/left/input/trigger/force",
|
||||
|
||||
"/user/hand/right/input/a/click",
|
||||
"/user/hand/right/input/a/touch",
|
||||
"/user/hand/right/input/b/click",
|
||||
"/user/hand/right/input/b/touch",
|
||||
"/user/hand/right/input/system/click",
|
||||
"/user/hand/right/input/squeeze/value",
|
||||
"/user/hand/right/input/trigger/value",
|
||||
"/user/hand/right/input/trigger/touch",
|
||||
"/user/hand/right/input/thumbstick",
|
||||
"/user/hand/right/input/thumbstick/click",
|
||||
"/user/hand/right/input/thumbstick/touch",
|
||||
"/user/hand/right/input/thumbrest/touch",
|
||||
"/user/hand/right/input/thumb_meta/proximity_meta",
|
||||
"/user/hand/right/input/trigger/curl_meta",
|
||||
"/user/hand/right/input/trigger/slide_meta",
|
||||
"/user/hand/right/input/trigger/force",
|
||||
|
||||
}},
|
||||
interaction_profile{
|
||||
" /interaction_profiles/meta/touch_plus_controller",
|
||||
{"XR_VERSION_1_1"},
|
||||
{
|
||||
"/user/hand/left/output/haptic",
|
||||
"/user/hand/right/output/haptic",
|
||||
|
||||
"/user/hand/left/input/grip/pose",
|
||||
"/user/hand/left/input/aim/pose",
|
||||
|
||||
"/user/hand/right/input/grip/pose",
|
||||
"/user/hand/right/input/aim/pose",
|
||||
|
||||
"/user/hand/left/input/x/click",
|
||||
"/user/hand/left/input/x/touch",
|
||||
"/user/hand/left/input/y/click",
|
||||
"/user/hand/left/input/y/touch",
|
||||
"/user/hand/left/input/menu/click",
|
||||
"/user/hand/left/input/squeeze/value",
|
||||
"/user/hand/left/input/trigger/value",
|
||||
"/user/hand/left/input/trigger/touch",
|
||||
"/user/hand/left/input/trigger/force",
|
||||
"/user/hand/left/input/trigger/proximity",
|
||||
"/user/hand/left/input/trigger_curl/value",
|
||||
"/user/hand/left/input/trigger_slide/value",
|
||||
"/user/hand/left/input/thumb_resting_surfaces/proximity",
|
||||
"/user/hand/left/input/thumbstick",
|
||||
"/user/hand/left/input/thumbstick/click",
|
||||
"/user/hand/left/input/thumbstick/touch",
|
||||
"/user/hand/left/input/thumbrest/touch",
|
||||
|
||||
"/user/hand/right/input/a/click",
|
||||
"/user/hand/right/input/a/touch",
|
||||
"/user/hand/right/input/b/click",
|
||||
"/user/hand/right/input/b/touch",
|
||||
"/user/hand/right/input/system/click",
|
||||
"/user/hand/right/input/squeeze/value",
|
||||
"/user/hand/right/input/trigger/value",
|
||||
"/user/hand/right/input/trigger/touch",
|
||||
"/user/hand/right/input/trigger/force",
|
||||
"/user/hand/right/input/trigger/proximity",
|
||||
"/user/hand/right/input/trigger_curl/value",
|
||||
"/user/hand/right/input/trigger_slide/value",
|
||||
"/user/hand/right/input/thumb_resting_surfaces/proximity",
|
||||
"/user/hand/right/input/thumbstick",
|
||||
"/user/hand/right/input/thumbstick/click",
|
||||
"/user/hand/right/input/thumbstick/touch",
|
||||
"/user/hand/right/input/thumbrest/touch",
|
||||
|
||||
}},
|
||||
interaction_profile{
|
||||
"/interaction_profiles/bytedance/pico_neo3_controller",
|
||||
{"XR_BD_controller_interaction"},
|
||||
@@ -147,13 +355,13 @@ static std::vector<interaction_profile> interaction_profiles{
|
||||
"/user/hand/left/input/y/touch",
|
||||
"/user/hand/left/input/menu/click",
|
||||
"/user/hand/left/input/system/click",
|
||||
"/user/hand/left/input/squeeze/click",
|
||||
"/user/hand/left/input/squeeze/value",
|
||||
"/user/hand/left/input/trigger/value",
|
||||
"/user/hand/left/input/trigger/touch",
|
||||
"/user/hand/left/input/thumbstick",
|
||||
"/user/hand/left/input/thumbstick/click",
|
||||
"/user/hand/left/input/thumbstick/touch",
|
||||
"/user/hand/left/input/thumbrest/touch",
|
||||
|
||||
"/user/hand/right/input/a/click",
|
||||
"/user/hand/right/input/a/touch",
|
||||
@@ -161,13 +369,13 @@ static std::vector<interaction_profile> interaction_profiles{
|
||||
"/user/hand/right/input/b/touch",
|
||||
"/user/hand/right/input/menu/click",
|
||||
"/user/hand/right/input/system/click",
|
||||
"/user/hand/right/input/squeeze/click",
|
||||
"/user/hand/right/input/squeeze/value",
|
||||
"/user/hand/right/input/trigger/value",
|
||||
"/user/hand/right/input/trigger/touch",
|
||||
"/user/hand/right/input/thumbstick",
|
||||
"/user/hand/right/input/thumbstick/click",
|
||||
"/user/hand/right/input/thumbstick/touch",
|
||||
"/user/hand/right/input/thumbrest/touch",
|
||||
|
||||
}},
|
||||
interaction_profile{
|
||||
@@ -188,27 +396,29 @@ static std::vector<interaction_profile> interaction_profiles{
|
||||
"/user/hand/left/input/y/click",
|
||||
"/user/hand/left/input/y/touch",
|
||||
"/user/hand/left/input/menu/click",
|
||||
"/user/hand/left/input/squeeze/click",
|
||||
"/user/hand/left/input/squeeze/value",
|
||||
"/user/hand/left/input/system/click",
|
||||
"/user/hand/left/input/trigger/click",
|
||||
"/user/hand/left/input/trigger/value",
|
||||
"/user/hand/left/input/trigger/touch",
|
||||
"/user/hand/left/input/thumbstick",
|
||||
"/user/hand/left/input/thumbstick/click",
|
||||
"/user/hand/left/input/thumbstick/touch",
|
||||
"/user/hand/left/input/thumbrest/touch",
|
||||
"/user/hand/left/input/squeeze/click",
|
||||
"/user/hand/left/input/squeeze/value",
|
||||
|
||||
"/user/hand/right/input/a/click",
|
||||
"/user/hand/right/input/a/touch",
|
||||
"/user/hand/right/input/b/click",
|
||||
"/user/hand/right/input/b/touch",
|
||||
"/user/hand/right/input/squeeze/click",
|
||||
"/user/hand/right/input/squeeze/value",
|
||||
"/user/hand/right/input/system/click",
|
||||
"/user/hand/right/input/trigger/click",
|
||||
"/user/hand/right/input/trigger/value",
|
||||
"/user/hand/right/input/trigger/touch",
|
||||
"/user/hand/right/input/thumbstick",
|
||||
"/user/hand/right/input/thumbstick/click",
|
||||
"/user/hand/right/input/thumbstick/touch",
|
||||
"/user/hand/right/input/thumbrest/touch",
|
||||
"/user/hand/right/input/squeeze/click",
|
||||
"/user/hand/right/input/squeeze/value",
|
||||
}},
|
||||
interaction_profile{
|
||||
"/interaction_profiles/htc/vive_focus3_controller",
|
||||
@@ -230,12 +440,12 @@ static std::vector<interaction_profile> interaction_profiles{
|
||||
"/user/hand/left/input/squeeze/touch",
|
||||
"/user/hand/left/input/squeeze/value",
|
||||
"/user/hand/left/input/trigger/click",
|
||||
"/user/hand/left/input/trigger/value",
|
||||
"/user/hand/left/input/trigger/touch",
|
||||
"/user/hand/left/input/thumbrest/touch",
|
||||
"/user/hand/left/input/trigger/value",
|
||||
"/user/hand/left/input/thumbstick",
|
||||
"/user/hand/left/input/thumbstick/click",
|
||||
"/user/hand/left/input/thumbstick/touch",
|
||||
"/user/hand/left/input/thumbrest/touch",
|
||||
|
||||
"/user/hand/right/input/a/click",
|
||||
"/user/hand/right/input/b/click",
|
||||
@@ -244,8 +454,8 @@ static std::vector<interaction_profile> interaction_profiles{
|
||||
"/user/hand/right/input/squeeze/touch",
|
||||
"/user/hand/right/input/squeeze/value",
|
||||
"/user/hand/right/input/trigger/click",
|
||||
"/user/hand/right/input/trigger/value",
|
||||
"/user/hand/right/input/trigger/touch",
|
||||
"/user/hand/right/input/trigger/value",
|
||||
"/user/hand/right/input/thumbstick",
|
||||
"/user/hand/right/input/thumbstick/click",
|
||||
"/user/hand/right/input/thumbstick/touch",
|
||||
@@ -262,26 +472,35 @@ static std::vector<interaction_profile> interaction_profiles{
|
||||
static const std::pair<std::string_view, XrActionType> action_suffixes[] =
|
||||
{
|
||||
// clang-format off
|
||||
// From OpenXR spec 1.0.33, §6.3.2 Input subpaths
|
||||
// From OpenXR spec 1.1.43, §6.3.2 Input subpaths
|
||||
// + extensions
|
||||
|
||||
// Standard components
|
||||
{"/click", XR_ACTION_TYPE_BOOLEAN_INPUT},
|
||||
{"/touch", XR_ACTION_TYPE_BOOLEAN_INPUT},
|
||||
{"/force", XR_ACTION_TYPE_FLOAT_INPUT},
|
||||
{"/value", XR_ACTION_TYPE_FLOAT_INPUT},
|
||||
{"/x", XR_ACTION_TYPE_FLOAT_INPUT},
|
||||
{"/y", XR_ACTION_TYPE_FLOAT_INPUT},
|
||||
{"/twist", XR_ACTION_TYPE_FLOAT_INPUT},
|
||||
{"/pose", XR_ACTION_TYPE_POSE_INPUT},
|
||||
{"/click", XR_ACTION_TYPE_BOOLEAN_INPUT},
|
||||
{"/touch", XR_ACTION_TYPE_BOOLEAN_INPUT},
|
||||
{"/proximity", XR_ACTION_TYPE_BOOLEAN_INPUT},
|
||||
{"/proximity_fb",XR_ACTION_TYPE_BOOLEAN_INPUT},
|
||||
{"/force", XR_ACTION_TYPE_FLOAT_INPUT},
|
||||
{"/value", XR_ACTION_TYPE_FLOAT_INPUT},
|
||||
{"/x", XR_ACTION_TYPE_FLOAT_INPUT},
|
||||
{"/y", XR_ACTION_TYPE_FLOAT_INPUT},
|
||||
{"/twist", XR_ACTION_TYPE_FLOAT_INPUT},
|
||||
{"/curl_fb", XR_ACTION_TYPE_FLOAT_INPUT},
|
||||
{"/curl_meta", XR_ACTION_TYPE_FLOAT_INPUT},
|
||||
{"/pose", XR_ACTION_TYPE_POSE_INPUT},
|
||||
|
||||
// Standard 2D identifier, can be used without the /x and /y cmoponents
|
||||
{"/trackpad", XR_ACTION_TYPE_VECTOR2F_INPUT},
|
||||
{"/thumbstick", XR_ACTION_TYPE_VECTOR2F_INPUT},
|
||||
{"/joystick", XR_ACTION_TYPE_VECTOR2F_INPUT},
|
||||
{"/trackball", XR_ACTION_TYPE_VECTOR2F_INPUT},
|
||||
{"/trackpad", XR_ACTION_TYPE_VECTOR2F_INPUT},
|
||||
{"/thumbstick", XR_ACTION_TYPE_VECTOR2F_INPUT},
|
||||
{"/joystick", XR_ACTION_TYPE_VECTOR2F_INPUT},
|
||||
{"/trackball", XR_ACTION_TYPE_VECTOR2F_INPUT},
|
||||
|
||||
// Output paths
|
||||
{"/haptic", XR_ACTION_TYPE_VIBRATION_OUTPUT},
|
||||
{"/haptic", XR_ACTION_TYPE_VIBRATION_OUTPUT},
|
||||
{"/haptic_trigger", XR_ACTION_TYPE_VIBRATION_OUTPUT},
|
||||
{"/haptic_trigger_fb",XR_ACTION_TYPE_VIBRATION_OUTPUT},
|
||||
{"/haptic_thumb", XR_ACTION_TYPE_VIBRATION_OUTPUT},
|
||||
{"/haptic_thumb_fb", XR_ACTION_TYPE_VIBRATION_OUTPUT},
|
||||
// clang-format on
|
||||
};
|
||||
|
||||
@@ -788,7 +1007,8 @@ void application::initialize()
|
||||
{
|
||||
for (const auto & j: i.required_extensions)
|
||||
{
|
||||
opt_extensions.push_back(j);
|
||||
if (not j.starts_with("XR_VERSION"))
|
||||
opt_extensions.push_back(j);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user