From ba598ee77f9d37bb8bc57408845bc9ba3aa24b23 Mon Sep 17 00:00:00 2001 From: galister <22305755+galister@users.noreply.github.com> Date: Thu, 2 Jul 2026 14:31:07 +0900 Subject: [PATCH] update default profiles --- wlx-common/assets/openxr_actions.json5 | 129 +++++++++++++++++++++++-- 1 file changed, 121 insertions(+), 8 deletions(-) diff --git a/wlx-common/assets/openxr_actions.json5 b/wlx-common/assets/openxr_actions.json5 index c0950db7..d2e6a3d6 100644 --- a/wlx-common/assets/openxr_actions.json5 +++ b/wlx-common/assets/openxr_actions.json5 @@ -227,6 +227,14 @@ double_click: true, right: "/user/hand/right/input/menu/click", }, + move_mouse: { + left: "/user/hand/left/input/trigger/value", + right: "/user/hand/right/input/trigger/value", + threshold: [ + 0.1, + 0.2 + ] + }, haptic: { left: "/user/hand/left/output/haptic", right: "/user/hand/right/output/haptic" @@ -261,19 +269,23 @@ right: "/user/hand/right/input/thumbstick/x" }, show_hide: { - left: "/user/hand/left/input/system/click", + left: "/user/hand/left/input/menu/click", }, space_drag: { double_click: true, - right: "/user/hand/left/input/system/click", + right: "/user/hand/right/input/menu/click", }, click_modifier_right: { - left: "/user/hand/left/input/trackpad/dpad_up", - right: "/user/hand/right/input/trackpad/dpad_up" + left: "/user/hand/left/input/trackpad/touch", + right: "/user/hand/right/input/trackpad/touch" }, - click_modifier_middle: { - left: "/user/hand/left/input/trackpad/dpad_down", - right: "/user/hand/right/input/trackpad/dpad_down" + move_mouse: { + left: "/user/hand/left/input/trigger/value", + right: "/user/hand/right/input/trigger/value", + threshold: [ + 0.1, + 0.2 + ] }, }, @@ -311,6 +323,107 @@ double_click: true, right: "/user/hand/left/input/system/click", }, + move_mouse: { + left: "/user/hand/left/input/trigger/value", + right: "/user/hand/right/input/trigger/value", + threshold: [ + 0.1, + 0.2 + ] + }, }, - + { + profile: "/interaction_profiles/khr/generic_controller", + pose: { + left: "/user/hand/left/input/aim/pose", + right: "/user/hand/right/input/aim/pose" + }, + click: { + left: "/user/hand/left/input/trigger/value", + right: "/user/hand/right/input/trigger/value" + }, + grab: { + left: "/user/hand/left/input/squeeze/value", + right: "/user/hand/right/input/squeeze/value" + }, + show_hide: { + left: "/user/hand/left/input/secondary/click", + "double_click": true + }, + click_modifier_right: { + left: "/user/hand/left/input/secondary/click", + right: "/user/hand/right/input/secondary/click" + }, + click_modifier_middle: { + left: "/user/hand/left/input/primary/click", + right: "/user/hand/right/input/primary/click" + }, + move_mouse: { + left: "/user/hand/left/input/trigger/value", + right: "/user/hand/right/input/trigger/value", + threshold: [ + 0.1, + 0.2 + ] + }, + scroll: { + left: "/user/hand/left/input/thumbstick/y", + right: "/user/hand/right/input/thumbstick/y" + }, + scroll_horizontal: { + left: "/user/hand/left/input/thumbstick/x", + right: "/user/hand/right/input/thumbstick/x" + }, + haptic: { + left: "/user/hand/left/output/haptic", + right: "/user/hand/right/output/haptic" + } + }, + { + profile: "/interaction_profiles/samsung/odyssey_controller", + pose: { + left: "/user/hand/left/input/aim/pose", + right: "/user/hand/right/input/aim/pose" + }, + click: { + left: "/user/hand/left/input/trigger/value", + right: "/user/hand/right/input/trigger/value" + }, + grab: { + left: "/user/hand/left/input/squeeze/click", + right: "/user/hand/right/input/squeeze/click" + }, + show_hide: { + left: "/user/hand/left/input/menu/click" + }, + space_drag: { + right: "/user/hand/right/input/menu/click", + double_click: true + }, + click_modifier_right: { + left: "/user/hand/left/input/trackpad/touch", + right: "/user/hand/right/input/trackpad/touch" + }, + click_modifier_middle: {}, + move_mouse: { + left: "/user/hand/left/input/trigger/value", + right: "/user/hand/right/input/trigger/value", + threshold: [ + 0.1, + 0.2 + ] + }, + scroll: { + left: "/user/hand/left/input/thumbstick/y", + right: "/user/hand/right/input/thumbstick/y" + }, + scroll_horizontal: { + left: "/user/hand/left/input/thumbstick/x", + right: "/user/hand/right/input/thumbstick/x" + }, + haptic: { + left: "/user/hand/left/output/haptic", + right: "/user/hand/right/output/haptic" + } + } ]