a/bindings: Add meta/touch_controller_* profiles

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2194>
This commit is contained in:
Christoph Haag 2024-03-22 13:21:10 +01:00 committed by Marge Bot
parent b101db3705
commit 2371d68bbe

View file

@ -980,6 +980,448 @@
}
},
"/interaction_profiles/meta/touch_controller_rift_cv1": {
"title": "Meta Touch Controller (Rift CV1)",
"type": "tracked_controller",
"steamvr_controllertype": "oculus_touch",
"monado_device": "XRT_DEVICE_TOUCH_CONTROLLER",
"extended_by": ["ext/palm_pose", "grip_surface", "ext/hand_interaction_poses"],
"openxr_version": {
"promoted": {
"major": "1",
"minor": "1"
}
},
"subaction_paths": [
"/user/hand/left",
"/user/hand/right"
],
"subpaths": {
"/input/x": {
"type": "button",
"localized_name": "X",
"components": ["click", "touch"],
"side": "left",
"monado_bindings": {
"click": "XRT_INPUT_TOUCH_X_CLICK",
"touch": "XRT_INPUT_TOUCH_X_TOUCH"
}
},
"/input/y": {
"type": "button",
"localized_name": "Y",
"components": ["click", "touch"],
"side": "left",
"monado_bindings": {
"click": "XRT_INPUT_TOUCH_Y_CLICK",
"touch": "XRT_INPUT_TOUCH_Y_TOUCH"
}
},
"/input/menu": {
"type": "button",
"localized_name": "Menu",
"components": ["click"],
"side": "left",
"monado_bindings": {
"click": "XRT_INPUT_TOUCH_MENU_CLICK"
}
},
"/input/a": {
"type": "button",
"localized_name": "A",
"components": ["click", "touch"],
"side": "right",
"monado_bindings": {
"click": "XRT_INPUT_TOUCH_A_CLICK",
"touch": "XRT_INPUT_TOUCH_A_TOUCH"
}
},
"/input/b": {
"type": "button",
"localized_name": "B",
"components": ["click", "touch"],
"side": "right",
"monado_bindings": {
"click": "XRT_INPUT_TOUCH_B_CLICK",
"touch": "XRT_INPUT_TOUCH_B_TOUCH"
}
},
"/input/system": {
"type": "button",
"localized_name": "System",
"components": ["click"],
"side": "right",
"monado_bindings": {
"click": "XRT_INPUT_TOUCH_SYSTEM_CLICK"
}
},
"/input/squeeze": {
"type": "trigger",
"localized_name": "Squeeze",
"components": ["value"],
"monado_bindings": {
"value": "XRT_INPUT_TOUCH_SQUEEZE_VALUE"
}
},
"/input/trigger": {
"type": "trigger",
"localized_name": "Trigger",
"components": ["touch", "value", "proximity"],
"monado_bindings": {
"touch": "XRT_INPUT_TOUCH_TRIGGER_TOUCH",
"value": "XRT_INPUT_TOUCH_TRIGGER_VALUE",
"proximity": "XRT_INPUT_TOUCH_TRIGGER_PROXIMITY"
}
},
"/input/thumbstick": {
"type": "joystick",
"localized_name": "Thumbstick",
"components": ["click", "touch", "position"],
"dpad_emulation": {
"position": "position",
"center": false
},
"monado_bindings": {
"click": "XRT_INPUT_TOUCH_THUMBSTICK_CLICK",
"touch": "XRT_INPUT_TOUCH_THUMBSTICK_TOUCH",
"position": "XRT_INPUT_TOUCH_THUMBSTICK"
}
},
"/input/thumbrest": {
"type": "button",
"localized_name": "Thumb Rest",
"components": ["touch"],
"monado_bindings": {
"touch": "XRT_INPUT_TOUCH_THUMBREST_TOUCH"
}
},
"/input/thumb_resting_surfaces": {
"type": "button",
"localized_name": "Thumb",
"components": ["proximity"],
"monado_bindings": {
"force": "XRT_INPUT_TOUCH_THUMB_PROXIMITY"
}
},
"/input/grip": {
"type": "pose",
"localized_name": "Grip",
"components": ["pose"],
"monado_bindings": {
"pose": "XRT_INPUT_TOUCH_GRIP_POSE"
}
},
"/input/aim": {
"type": "pose",
"localized_name": "Aim",
"components": ["pose"],
"monado_bindings": {
"pose": "XRT_INPUT_TOUCH_AIM_POSE"
}
},
"/output/haptic": {
"type": "vibration",
"localized_name": "Haptic",
"components": ["haptic"],
"monado_bindings": {
"haptic": "XRT_OUTPUT_NAME_TOUCH_HAPTIC"
}
}
}
},
"/interaction_profiles/meta/touch_controller_quest_1_rift_s": {
"title": "Meta Touch Controller (Rift S / Quest 1)",
"type": "tracked_controller",
"steamvr_controllertype": "oculus_touch",
"monado_device": "XRT_DEVICE_TOUCH_CONTROLLER",
"extended_by": ["ext/palm_pose", "grip_surface", "ext/hand_interaction_poses"],
"openxr_version": {
"promoted": {
"major": "1",
"minor": "1"
}
},
"subaction_paths": [
"/user/hand/left",
"/user/hand/right"
],
"subpaths": {
"/input/x": {
"type": "button",
"localized_name": "X",
"components": ["click", "touch"],
"side": "left",
"monado_bindings": {
"click": "XRT_INPUT_TOUCH_X_CLICK",
"touch": "XRT_INPUT_TOUCH_X_TOUCH"
}
},
"/input/y": {
"type": "button",
"localized_name": "Y",
"components": ["click", "touch"],
"side": "left",
"monado_bindings": {
"click": "XRT_INPUT_TOUCH_Y_CLICK",
"touch": "XRT_INPUT_TOUCH_Y_TOUCH"
}
},
"/input/menu": {
"type": "button",
"localized_name": "Menu",
"components": ["click"],
"side": "left",
"monado_bindings": {
"click": "XRT_INPUT_TOUCH_MENU_CLICK"
}
},
"/input/a": {
"type": "button",
"localized_name": "A",
"components": ["click", "touch"],
"side": "right",
"monado_bindings": {
"click": "XRT_INPUT_TOUCH_A_CLICK",
"touch": "XRT_INPUT_TOUCH_A_TOUCH"
}
},
"/input/b": {
"type": "button",
"localized_name": "B",
"components": ["click", "touch"],
"side": "right",
"monado_bindings": {
"click": "XRT_INPUT_TOUCH_B_CLICK",
"touch": "XRT_INPUT_TOUCH_B_TOUCH"
}
},
"/input/system": {
"type": "button",
"localized_name": "System",
"components": ["click"],
"side": "right",
"monado_bindings": {
"click": "XRT_INPUT_TOUCH_SYSTEM_CLICK"
}
},
"/input/squeeze": {
"type": "trigger",
"localized_name": "Squeeze",
"components": ["value"],
"monado_bindings": {
"value": "XRT_INPUT_TOUCH_SQUEEZE_VALUE"
}
},
"/input/trigger": {
"type": "trigger",
"localized_name": "Trigger",
"components": ["touch", "value", "proximity"],
"monado_bindings": {
"touch": "XRT_INPUT_TOUCH_TRIGGER_TOUCH",
"value": "XRT_INPUT_TOUCH_TRIGGER_VALUE",
"proximity": "XRT_INPUT_TOUCH_TRIGGER_PROXIMITY"
}
},
"/input/thumbstick": {
"type": "joystick",
"localized_name": "Thumbstick",
"components": ["click", "touch", "position"],
"dpad_emulation": {
"position": "position",
"center": false
},
"monado_bindings": {
"click": "XRT_INPUT_TOUCH_THUMBSTICK_CLICK",
"touch": "XRT_INPUT_TOUCH_THUMBSTICK_TOUCH",
"position": "XRT_INPUT_TOUCH_THUMBSTICK"
}
},
"/input/thumb_resting_surfaces": {
"type": "button",
"localized_name": "Thumb",
"components": ["proximity"],
"monado_bindings": {
"force": "XRT_INPUT_TOUCH_THUMB_PROXIMITY"
}
},
"/input/grip": {
"type": "pose",
"localized_name": "Grip",
"components": ["pose"],
"monado_bindings": {
"pose": "XRT_INPUT_TOUCH_GRIP_POSE"
}
},
"/input/aim": {
"type": "pose",
"localized_name": "Aim",
"components": ["pose"],
"monado_bindings": {
"pose": "XRT_INPUT_TOUCH_AIM_POSE"
}
},
"/output/haptic": {
"type": "vibration",
"localized_name": "Haptic",
"components": ["haptic"],
"monado_bindings": {
"haptic": "XRT_OUTPUT_NAME_TOUCH_HAPTIC"
}
}
}
},
"/interaction_profiles/meta/touch_controller_quest_2": {
"title": "Meta Touch Controller (Quest 2)",
"type": "tracked_controller",
"steamvr_controllertype": "oculus_touch",
"monado_device": "XRT_DEVICE_TOUCH_CONTROLLER",
"extended_by": ["ext/palm_pose", "grip_surface", "ext/hand_interaction_poses"],
"openxr_version": {
"promoted": {
"major": "1",
"minor": "1"
}
},
"subaction_paths": [
"/user/hand/left",
"/user/hand/right"
],
"subpaths": {
"/input/x": {
"type": "button",
"localized_name": "X",
"components": ["click", "touch"],
"side": "left",
"monado_bindings": {
"click": "XRT_INPUT_TOUCH_X_CLICK",
"touch": "XRT_INPUT_TOUCH_X_TOUCH"
}
},
"/input/y": {
"type": "button",
"localized_name": "Y",
"components": ["click", "touch"],
"side": "left",
"monado_bindings": {
"click": "XRT_INPUT_TOUCH_Y_CLICK",
"touch": "XRT_INPUT_TOUCH_Y_TOUCH"
}
},
"/input/menu": {
"type": "button",
"localized_name": "Menu",
"components": ["click"],
"side": "left",
"monado_bindings": {
"click": "XRT_INPUT_TOUCH_MENU_CLICK"
}
},
"/input/a": {
"type": "button",
"localized_name": "A",
"components": ["click", "touch"],
"side": "right",
"monado_bindings": {
"click": "XRT_INPUT_TOUCH_A_CLICK",
"touch": "XRT_INPUT_TOUCH_A_TOUCH"
}
},
"/input/b": {
"type": "button",
"localized_name": "B",
"components": ["click", "touch"],
"side": "right",
"monado_bindings": {
"click": "XRT_INPUT_TOUCH_B_CLICK",
"touch": "XRT_INPUT_TOUCH_B_TOUCH"
}
},
"/input/system": {
"type": "button",
"localized_name": "System",
"components": ["click"],
"side": "right",
"monado_bindings": {
"click": "XRT_INPUT_TOUCH_SYSTEM_CLICK"
}
},
"/input/squeeze": {
"type": "trigger",
"localized_name": "Squeeze",
"components": ["value"],
"monado_bindings": {
"value": "XRT_INPUT_TOUCH_SQUEEZE_VALUE"
}
},
"/input/trigger": {
"type": "trigger",
"localized_name": "Trigger",
"components": ["touch", "value", "proximity"],
"monado_bindings": {
"touch": "XRT_INPUT_TOUCH_TRIGGER_TOUCH",
"value": "XRT_INPUT_TOUCH_TRIGGER_VALUE",
"proximity": "XRT_INPUT_TOUCH_TRIGGER_PROXIMITY"
}
},
"/input/thumbstick": {
"type": "joystick",
"localized_name": "Thumbstick",
"components": ["click", "touch", "position"],
"dpad_emulation": {
"position": "position",
"center": false
},
"monado_bindings": {
"click": "XRT_INPUT_TOUCH_THUMBSTICK_CLICK",
"touch": "XRT_INPUT_TOUCH_THUMBSTICK_TOUCH",
"position": "XRT_INPUT_TOUCH_THUMBSTICK"
}
},
"/input/thumbrest": {
"type": "button",
"localized_name": "Thumb Rest",
"components": ["touch"],
"monado_bindings": {
"touch": "XRT_INPUT_TOUCH_THUMBREST_TOUCH"
}
},
"/input/thumb_resting_surfaces": {
"type": "button",
"localized_name": "Thumb",
"components": ["proximity"],
"monado_bindings": {
"force": "XRT_INPUT_TOUCH_THUMB_PROXIMITY"
}
},
"/input/grip": {
"type": "pose",
"localized_name": "Grip",
"components": ["pose"],
"monado_bindings": {
"pose": "XRT_INPUT_TOUCH_GRIP_POSE"
}
},
"/input/aim": {
"type": "pose",
"localized_name": "Aim",
"components": ["pose"],
"monado_bindings": {
"pose": "XRT_INPUT_TOUCH_AIM_POSE"
}
},
"/output/haptic": {
"type": "vibration",
"localized_name": "Haptic",
"components": ["haptic"],
"monado_bindings": {
"haptic": "XRT_OUTPUT_NAME_TOUCH_HAPTIC"
}
}
}
},
"/interaction_profiles/valve/index_controller": {
"title": "Valve Index Controller",
"type": "tracked_controller",