Add PFDM MR controller support
This commit is contained in:
@@ -290,7 +290,7 @@ wivrn_webxr_controller(PROFILE pico-4 DESTINATION ${ASSETS_DIR}
|
||||
wivrn_webxr_controller(PROFILE pico-4u DESTINATION ${ASSETS_DIR}/controllers TARGET wivrn)
|
||||
wivrn_webxr_controller(PROFILE pico-neo3 DESTINATION ${ASSETS_DIR}/controllers TARGET wivrn)
|
||||
wivrn_webxr_controller(PROFILE samsung-galaxyxr DESTINATION ${ASSETS_DIR}/controllers TARGET wivrn)
|
||||
|
||||
wivrn_webxr_controller(PROFILE yvr-touch-v2 DESTINATION ${ASSETS_DIR}/controllers TARGET wivrn)
|
||||
|
||||
# Add the VR splash screen (only used on Quest)
|
||||
if(ANDROID)
|
||||
|
||||
@@ -476,6 +476,47 @@ static std::vector<interaction_profile> interaction_profiles{
|
||||
"/user/hand/right/input/squeeze/value",
|
||||
},
|
||||
},
|
||||
interaction_profile{
|
||||
.profile_name = "/interaction_profiles/yvr/touch_controller_yvr",
|
||||
.input_sources = {
|
||||
"/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/squeeze/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/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/squeeze/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",
|
||||
},
|
||||
},
|
||||
interaction_profile{
|
||||
.profile_name = "/interaction_profiles/htc/vive_focus3_controller",
|
||||
.required_extensions = {XR_HTC_VIVE_FOCUS3_CONTROLLER_INTERACTION_EXTENSION_NAME},
|
||||
|
||||
@@ -167,6 +167,11 @@ void hmd_traits::init()
|
||||
needs_srgb_conversion = false;
|
||||
}
|
||||
|
||||
else if (manufacturer == "Play For Dream" and model == "PFDM MR")
|
||||
{
|
||||
controller_profile = "yvr-touch-v2";
|
||||
}
|
||||
|
||||
else if (manufacturer == "Pico")
|
||||
{
|
||||
permissions[feature::eye_gaze] = "com.picovr.permission.EYE_TRACKING";
|
||||
|
||||
@@ -1418,6 +1418,7 @@ scene::meta & scenes::lobby::get_meta_scene()
|
||||
"/interaction_profiles/bytedance/pico_neo3_controller",
|
||||
"/interaction_profiles/bytedance/pico4_controller",
|
||||
"/interaction_profiles/bytedance/pico4s_controller",
|
||||
"/interaction_profiles/yvr/touch_controller_yvr",
|
||||
"/interaction_profiles/htc/vive_focus3_controller",
|
||||
},
|
||||
{
|
||||
|
||||
@@ -1247,6 +1247,7 @@ scene::meta & scenes::stream::get_meta_scene()
|
||||
"/interaction_profiles/bytedance/pico_neo3_controller",
|
||||
"/interaction_profiles/bytedance/pico4_controller",
|
||||
"/interaction_profiles/bytedance/pico4s_controller",
|
||||
"/interaction_profiles/yvr/touch_controller_yvr",
|
||||
"/interaction_profiles/htc/vive_focus3_controller",
|
||||
},
|
||||
{
|
||||
|
||||
@@ -700,6 +700,7 @@ void scenes::stream::on_interaction_profile_changed(const XrEventDataInteraction
|
||||
DO_PROFILE(meta, touch_controller_rift_cv1)
|
||||
DO_PROFILE(meta, touch_controller_quest_1_rift_s)
|
||||
DO_PROFILE(meta, touch_controller_quest_2)
|
||||
DO_PROFILE(yvr, touch_controller_yvr)
|
||||
DO_PROFILE(samsung, odyssey_controller)
|
||||
DO_PROFILE(valve, index_controller)
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
namespace wivrn
|
||||
{
|
||||
|
||||
static constexpr int protocol_revision = 1;
|
||||
static constexpr int protocol_revision = 2;
|
||||
|
||||
enum class device_id : uint8_t
|
||||
{
|
||||
@@ -160,6 +160,7 @@ enum class interaction_profile : uint8_t
|
||||
meta_touch_controller_rift_cv1,
|
||||
meta_touch_controller_quest_1_rift_s,
|
||||
meta_touch_controller_quest_2,
|
||||
yvr_touch_controller_yvr,
|
||||
samsung_odyssey_controller,
|
||||
valve_index_controller,
|
||||
};
|
||||
|
||||
@@ -517,6 +517,7 @@ static xrt_device_name get_name(interaction_profile profile)
|
||||
case interaction_profile::meta_touch_controller_rift_cv1:
|
||||
case interaction_profile::meta_touch_controller_quest_1_rift_s:
|
||||
case interaction_profile::meta_touch_controller_quest_2:
|
||||
case interaction_profile::yvr_touch_controller_yvr:
|
||||
return XRT_DEVICE_TOUCH_CONTROLLER;
|
||||
case interaction_profile::meta_touch_pro_controller:
|
||||
return XRT_DEVICE_TOUCH_PRO_CONTROLLER;
|
||||
|
||||
Reference in New Issue
Block a user