From aefeeb140317337c69ce7bbcb09dcc23fdd37745 Mon Sep 17 00:00:00 2001 From: "Drew Chien (Te-Ju)" Date: Tue, 13 Jun 2023 01:30:11 +0100 Subject: [PATCH] a/bindings: Add eye gaze support --- src/xrt/auxiliary/bindings/bindings.json | 20 +++++++++++++++++++ .../auxiliary/bindings/bindings.schema.json | 8 +++++--- 2 files changed, 25 insertions(+), 3 deletions(-) diff --git a/src/xrt/auxiliary/bindings/bindings.json b/src/xrt/auxiliary/bindings/bindings.json index 87945d30d..2517bb6a4 100644 --- a/src/xrt/auxiliary/bindings/bindings.json +++ b/src/xrt/auxiliary/bindings/bindings.json @@ -1355,6 +1355,26 @@ } } } + }, + + "/interaction_profiles/ext/eye_gaze_interaction": { + "title": "Extension Eye Gaze Interaction", + "type": "eye_tracker", + "monado_device": "XRT_DEVICE_EYE_GAZE_INTERACTION", + "extension": "XR_EXT_eye_gaze_interaction", + "subaction_paths": [ + "/user/eyes_ext" + ], + "subpaths": { + "/input/gaze_ext": { + "type": "pose", + "localized_name": "Gaze", + "components": ["pose"], + "monado_bindings": { + "pose": "XRT_INPUT_GENERIC_EYE_GAZE_POSE" + } + } + } } } } diff --git a/src/xrt/auxiliary/bindings/bindings.schema.json b/src/xrt/auxiliary/bindings/bindings.schema.json index e4156e31b..1d7c2a9fe 100644 --- a/src/xrt/auxiliary/bindings/bindings.schema.json +++ b/src/xrt/auxiliary/bindings/bindings.schema.json @@ -7,7 +7,8 @@ "enum": [ "tracked_controller", "untracked_controller", - "tracked_hmd" + "tracked_hmd", + "eye_tracker" ] }, "subpathType": { @@ -42,7 +43,8 @@ "/user/hand/left", "/user/hand/right", "/user/head", - "/user/gamepad" + "/user/gamepad", + "/user/eyes_ext" ] }, "steamVrControllerType": { @@ -195,7 +197,7 @@ "type": "object", "title": "Paths provided by this profile", "propertyNames": { - "pattern": "^(/input/(select|menu|grip|aim|trackpad|system|squeeze|trigger|volume_up|volume_down|mute_mic|thumbrest|home|start|([a-z]+)_mndx|[1-4]|thumbstick(_left|_right)?|view|a|b|x|y|dpad_(up|down|left|right)|shoulder(_left|_right)?))|(/output/haptic(_left|_right|_left_trigger|_right_trigger)?)$" + "pattern": "^(/input/(select|menu|grip|aim|trackpad|system|squeeze|trigger|volume_up|volume_down|mute_mic|thumbrest|home|start|gaze_ext|([a-z]+)_mndx|[1-4]|thumbstick(_left|_right)?|view|a|b|x|y|dpad_(up|down|left|right)|shoulder(_left|_right)?))|(/output/haptic(_left|_right|_left_trigger|_right_trigger)?)$" }, "additionalProperties": { "$ref": "#/definitions/subpathData"