Skip to content

Commit

Permalink
Revert "[Pico] Workaround input profile selection in Pico4 Ultra"
Browse files Browse the repository at this point in the history
This reverts commit 231ce36.
  • Loading branch information
svillar committed Feb 6, 2025
1 parent 39f32a6 commit 1adae94
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
3 changes: 1 addition & 2 deletions app/src/openxr/cpp/OpenXRInputMappings.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ namespace crow {
constexpr const char* kPathActionReady { "ready_ext" };
constexpr const char* kInteractionProfileHandInteraction { "/interaction_profiles/ext/hand_interaction_ext" };
constexpr const char* kInteractionProfileMSFTHandInteraction { "/interaction_profiles/microsoft/hand_interaction" };
constexpr const char* kInteractionProfileKHRSimple { "/interaction_profiles/khr/simple_controller" };

// OpenXR Button List
enum class OpenXRButtonType {
Expand Down Expand Up @@ -461,7 +460,7 @@ namespace crow {

// Default fallback: https://github.com/immersive-web/webxr-input-profiles/blob/master/packages/registry/profiles/generic/generic-button.json
const OpenXRInputMapping KHRSimple {
kInteractionProfileKHRSimple,
"/interaction_profiles/khr/simple_controller",
"generic-trigger.obj",
"generic-trigger.obj",
device::UnknownType,
Expand Down
6 changes: 0 additions & 6 deletions app/src/openxr/cpp/OpenXRInputSource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,6 @@ XrResult OpenXRInputSource::Initialize()
for (auto& mapping: OpenXRInputMappings) {
// Always populate default/fall-back profiles
if (mapping.controllerType == device::UnknownType) {
#if PICOXR
// Pico4U runtime incorrectly prioritize the Khronos simple controller over Pico's
// specific one. Workaround that bad behaviour by skipping the simple controller profile.
if (mDeviceType == device::Pico4U && !strcmp(mapping.path, kInteractionProfileKHRSimple))
continue;
#endif
mMappings.push_back(mapping);
// Use the system's deviceType instead to ensure we get a valid VRController on WebXR sessions
mMappings.back().controllerType = mDeviceType;
Expand Down

0 comments on commit 1adae94

Please sign in to comment.