diff --git a/.github/workflows/Build.yml b/.github/workflows/Build.yml index 90a998c9..a0c16c33 100644 --- a/.github/workflows/Build.yml +++ b/.github/workflows/Build.yml @@ -53,6 +53,7 @@ jobs: ${{github.workspace}}/cmake-fetch/*-subbuild/*-populate-prefix/src/*.tar.* ${{github.workspace}}/cmake-fetch/*-subbuild/*-populate-prefix/src/*.zip ${{github.workspace}}/cmake-fetch/*.tar.* + ${{github.workspace}}/cmake-fetch/*.tgz restore-keys: cmake-linux- - name: Install dependencies @@ -128,6 +129,7 @@ jobs: ${{github.workspace}}/cmake-fetch/*-subbuild/*-populate-prefix/src/*.tar.* ${{github.workspace}}/cmake-fetch/*-subbuild/*-populate-prefix/src/*.zip ${{github.workspace}}/cmake-fetch/*.tar.* + ${{github.workspace}}/cmake-fetch/*.tgz restore-keys: cmake-linux- - name: Configure CMake @@ -230,6 +232,7 @@ jobs: ${{github.workspace}}/cmake-fetch/*-subbuild/*-populate-prefix/src/*.zip ${{github.workspace}}/cmake-fetch/*.tar.* ${{github.workspace}}/cmake-fetch/*.zip + ${{github.workspace}}/cmake-fetch/*.tgz restore-keys: cmake-android- - name: Install dependencies diff --git a/assets-source/controllers/generic-trigger-squeeze/left.glb b/assets-source/controllers/generic-trigger-squeeze/left.glb deleted file mode 100644 index fddef8eb..00000000 Binary files a/assets-source/controllers/generic-trigger-squeeze/left.glb and /dev/null differ diff --git a/assets-source/controllers/generic-trigger-squeeze/none.glb b/assets-source/controllers/generic-trigger-squeeze/none.glb deleted file mode 100644 index 14e66af0..00000000 Binary files a/assets-source/controllers/generic-trigger-squeeze/none.glb and /dev/null differ diff --git a/assets-source/controllers/generic-trigger-squeeze/profile.json b/assets-source/controllers/generic-trigger-squeeze/profile.json deleted file mode 100644 index 60d8811f..00000000 --- a/assets-source/controllers/generic-trigger-squeeze/profile.json +++ /dev/null @@ -1,168 +0,0 @@ -{ - "profileId": "generic-trigger-squeeze", - "fallbackProfileIds": [], - "layouts": { - "left": { - "selectComponentId": "xr-standard-trigger", - "components": { - "xr-standard-trigger": { - "type": "trigger", - "gamepadIndices": { - "button": 0 - }, - "rootNodeName": "xr_standard_trigger", - "visualResponses": { - "xr_standard_trigger_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "xr_standard_trigger_pressed_value", - "minNodeName": "xr_standard_trigger_pressed_min", - "maxNodeName": "xr_standard_trigger_pressed_max" - } - } - }, - "xr-standard-squeeze": { - "type": "squeeze", - "gamepadIndices": { - "button": 1 - }, - "rootNodeName": "xr_standard_squeeze", - "visualResponses": { - "xr_standard_squeeze_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "xr_standard_squeeze_pressed_value", - "minNodeName": "xr_standard_squeeze_pressed_min", - "maxNodeName": "xr_standard_squeeze_pressed_max" - } - } - } - }, - "gamepadMapping": "xr-standard", - "rootNodeName": "generic-trigger-squeeze-left", - "assetPath": "left.glb" - }, - "right": { - "selectComponentId": "xr-standard-trigger", - "components": { - "xr-standard-trigger": { - "type": "trigger", - "gamepadIndices": { - "button": 0 - }, - "rootNodeName": "xr_standard_trigger", - "visualResponses": { - "xr_standard_trigger_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "xr_standard_trigger_pressed_value", - "minNodeName": "xr_standard_trigger_pressed_min", - "maxNodeName": "xr_standard_trigger_pressed_max" - } - } - }, - "xr-standard-squeeze": { - "type": "squeeze", - "gamepadIndices": { - "button": 1 - }, - "rootNodeName": "xr_standard_squeeze", - "visualResponses": { - "xr_standard_squeeze_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "xr_standard_squeeze_pressed_value", - "minNodeName": "xr_standard_squeeze_pressed_min", - "maxNodeName": "xr_standard_squeeze_pressed_max" - } - } - } - }, - "gamepadMapping": "xr-standard", - "rootNodeName": "generic-trigger-squeeze-right", - "assetPath": "right.glb" - }, - "none": { - "selectComponentId": "xr-standard-trigger", - "components": { - "xr-standard-trigger": { - "type": "trigger", - "gamepadIndices": { - "button": 0 - }, - "rootNodeName": "xr_standard_trigger", - "visualResponses": { - "xr_standard_trigger_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "xr_standard_trigger_pressed_value", - "minNodeName": "xr_standard_trigger_pressed_min", - "maxNodeName": "xr_standard_trigger_pressed_max" - } - } - }, - "xr-standard-squeeze": { - "type": "squeeze", - "gamepadIndices": { - "button": 1 - }, - "rootNodeName": "xr_standard_squeeze", - "visualResponses": { - "xr_standard_squeeze_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "xr_standard_squeeze_pressed_value", - "minNodeName": "xr_standard_squeeze_pressed_min", - "maxNodeName": "xr_standard_squeeze_pressed_max" - }, - "xr_standard_squeeze_pressed_mirror": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "xr_standard_squeeze_pressed_mirror_value", - "minNodeName": "xr_standard_squeeze_pressed_mirror_min", - "maxNodeName": "xr_standard_squeeze_pressed_mirror_max" - } - } - } - }, - "gamepadMapping": "xr-standard", - "rootNodeName": "generic-trigger-squeeze-none", - "assetPath": "none.glb" - } - } -} \ No newline at end of file diff --git a/assets-source/controllers/generic-trigger-squeeze/right.glb b/assets-source/controllers/generic-trigger-squeeze/right.glb deleted file mode 100644 index d62051d9..00000000 Binary files a/assets-source/controllers/generic-trigger-squeeze/right.glb and /dev/null differ diff --git a/assets-source/controllers/htc-vive-focus-3/left.glb b/assets-source/controllers/htc-vive-focus-3/left.glb deleted file mode 100644 index 5b394fbc..00000000 Binary files a/assets-source/controllers/htc-vive-focus-3/left.glb and /dev/null differ diff --git a/assets-source/controllers/htc-vive-focus-3/profile.json b/assets-source/controllers/htc-vive-focus-3/profile.json deleted file mode 100644 index 1fe79b34..00000000 --- a/assets-source/controllers/htc-vive-focus-3/profile.json +++ /dev/null @@ -1,286 +0,0 @@ -{ - "profileId": "htc-vive-focus-3", - "fallbackProfileIds": [ - "generic-trigger-squeeze-thumbstick" - ], - "layouts": { - "left": { - "selectComponentId": "xr-standard-trigger", - "components": { - "xr-standard-trigger": { - "type": "trigger", - "gamepadIndices": { - "button": 0 - }, - "rootNodeName": "xr_standard_trigger", - "visualResponses": { - "xr_standard_trigger_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "xr_standard_trigger_pressed_value", - "minNodeName": "xr_standard_trigger_pressed_min", - "maxNodeName": "xr_standard_trigger_pressed_max" - } - } - }, - "xr-standard-squeeze": { - "type": "squeeze", - "gamepadIndices": { - "button": 1 - }, - "rootNodeName": "xr_standard_squeeze", - "visualResponses": { - "xr_standard_squeeze_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "xr_standard_squeeze_pressed_value", - "minNodeName": "xr_standard_squeeze_pressed_min", - "maxNodeName": "xr_standard_squeeze_pressed_max" - } - } - }, - "xr-standard-thumbstick": { - "type": "thumbstick", - "gamepadIndices": { - "button": 3, - "xAxis": 2, - "yAxis": 3 - }, - "rootNodeName": "xr_standard_thumbstick", - "visualResponses": { - "xr_standard_thumbstick_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "xr_standard_thumbstick_pressed_value", - "minNodeName": "xr_standard_thumbstick_pressed_min", - "maxNodeName": "xr_standard_thumbstick_pressed_max" - }, - "xr_standard_thumbstick_xaxis_pressed": { - "componentProperty": "xAxis", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "xr_standard_thumbstick_xaxis_pressed_value", - "minNodeName": "xr_standard_thumbstick_xaxis_pressed_min", - "maxNodeName": "xr_standard_thumbstick_xaxis_pressed_max" - }, - "xr_standard_thumbstick_yaxis_pressed": { - "componentProperty": "yAxis", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "xr_standard_thumbstick_yaxis_pressed_value", - "minNodeName": "xr_standard_thumbstick_yaxis_pressed_min", - "maxNodeName": "xr_standard_thumbstick_yaxis_pressed_max" - } - } - }, - "x-button": { - "type": "button", - "gamepadIndices": { - "button": 4 - }, - "rootNodeName": "x_button", - "visualResponses": { - "x_button_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "x_button_pressed_value", - "minNodeName": "x_button_pressed_min", - "maxNodeName": "x_button_pressed_max" - } - } - }, - "y-button": { - "type": "button", - "gamepadIndices": { - "button": 5 - }, - "rootNodeName": "y_button", - "visualResponses": { - "y_button_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "y_button_pressed_value", - "minNodeName": "y_button_pressed_min", - "maxNodeName": "y_button_pressed_max" - } - } - } - }, - "gamepadMapping": "xr-standard", - "rootNodeName": "htc-vive-focus-3-left", - "assetPath": "left.glb" - }, - "right": { - "selectComponentId": "xr-standard-trigger", - "components": { - "xr-standard-trigger": { - "type": "trigger", - "gamepadIndices": { - "button": 0 - }, - "rootNodeName": "xr_standard_trigger", - "visualResponses": { - "xr_standard_trigger_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "xr_standard_trigger_pressed_value", - "minNodeName": "xr_standard_trigger_pressed_min", - "maxNodeName": "xr_standard_trigger_pressed_max" - } - } - }, - "xr-standard-squeeze": { - "type": "squeeze", - "gamepadIndices": { - "button": 1 - }, - "rootNodeName": "xr_standard_squeeze", - "visualResponses": { - "xr_standard_squeeze_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "xr_standard_squeeze_pressed_value", - "minNodeName": "xr_standard_squeeze_pressed_min", - "maxNodeName": "xr_standard_squeeze_pressed_max" - } - } - }, - "xr-standard-thumbstick": { - "type": "thumbstick", - "gamepadIndices": { - "button": 3, - "xAxis": 2, - "yAxis": 3 - }, - "rootNodeName": "xr_standard_thumbstick", - "visualResponses": { - "xr_standard_thumbstick_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "xr_standard_thumbstick_pressed_value", - "minNodeName": "xr_standard_thumbstick_pressed_min", - "maxNodeName": "xr_standard_thumbstick_pressed_max" - }, - "xr_standard_thumbstick_xaxis_pressed": { - "componentProperty": "xAxis", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "xr_standard_thumbstick_xaxis_pressed_value", - "minNodeName": "xr_standard_thumbstick_xaxis_pressed_min", - "maxNodeName": "xr_standard_thumbstick_xaxis_pressed_max" - }, - "xr_standard_thumbstick_yaxis_pressed": { - "componentProperty": "yAxis", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "xr_standard_thumbstick_yaxis_pressed_value", - "minNodeName": "xr_standard_thumbstick_yaxis_pressed_min", - "maxNodeName": "xr_standard_thumbstick_yaxis_pressed_max" - } - } - }, - "a-button": { - "type": "button", - "gamepadIndices": { - "button": 4 - }, - "rootNodeName": "a_button", - "visualResponses": { - "a_button_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "a_button_pressed_value", - "minNodeName": "a_button_pressed_min", - "maxNodeName": "a_button_pressed_max" - } - } - }, - "b-button": { - "type": "button", - "gamepadIndices": { - "button": 5 - }, - "rootNodeName": "b_button", - "visualResponses": { - "b_button_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "b_button_pressed_value", - "minNodeName": "b_button_pressed_min", - "maxNodeName": "b_button_pressed_max" - } - } - } - }, - "gamepadMapping": "xr-standard", - "rootNodeName": "htc-vive-focus-3-right", - "assetPath": "right.glb" - } - } -} \ No newline at end of file diff --git a/assets-source/controllers/htc-vive-focus-3/right.glb b/assets-source/controllers/htc-vive-focus-3/right.glb deleted file mode 100644 index 1efd1d2b..00000000 Binary files a/assets-source/controllers/htc-vive-focus-3/right.glb and /dev/null differ diff --git a/assets-source/controllers/meta-quest-touch-plus/left.glb b/assets-source/controllers/meta-quest-touch-plus/left.glb deleted file mode 100644 index 1bd74214..00000000 Binary files a/assets-source/controllers/meta-quest-touch-plus/left.glb and /dev/null differ diff --git a/assets-source/controllers/meta-quest-touch-plus/profile.json b/assets-source/controllers/meta-quest-touch-plus/profile.json deleted file mode 100644 index 7804bda6..00000000 --- a/assets-source/controllers/meta-quest-touch-plus/profile.json +++ /dev/null @@ -1,330 +0,0 @@ -{ - "profileId": "meta-quest-touch-plus", - "fallbackProfileIds": [ - "oculus-touch-v3", - "oculus-touch", - "generic-trigger-squeeze-thumbstick" - ], - "layouts": { - "left": { - "selectComponentId": "xr-standard-trigger", - "components": { - "xr-standard-trigger": { - "type": "trigger", - "gamepadIndices": { - "button": 0 - }, - "rootNodeName": "xr_standard_trigger", - "visualResponses": { - "xr_standard_trigger_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "xr_standard_trigger_pressed_value", - "minNodeName": "xr_standard_trigger_pressed_min", - "maxNodeName": "xr_standard_trigger_pressed_max" - } - } - }, - "xr-standard-squeeze": { - "type": "squeeze", - "gamepadIndices": { - "button": 1 - }, - "rootNodeName": "xr_standard_squeeze", - "visualResponses": { - "xr_standard_squeeze_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "xr_standard_squeeze_pressed_value", - "minNodeName": "xr_standard_squeeze_pressed_min", - "maxNodeName": "xr_standard_squeeze_pressed_max" - } - } - }, - "xr-standard-thumbstick": { - "type": "thumbstick", - "gamepadIndices": { - "button": 3, - "xAxis": 2, - "yAxis": 3 - }, - "rootNodeName": "xr_standard_thumbstick", - "visualResponses": { - "xr_standard_thumbstick_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "xr_standard_thumbstick_pressed_value", - "minNodeName": "xr_standard_thumbstick_pressed_min", - "maxNodeName": "xr_standard_thumbstick_pressed_max" - }, - "xr_standard_thumbstick_xaxis_pressed": { - "componentProperty": "xAxis", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "xr_standard_thumbstick_xaxis_pressed_value", - "minNodeName": "xr_standard_thumbstick_xaxis_pressed_min", - "maxNodeName": "xr_standard_thumbstick_xaxis_pressed_max" - }, - "xr_standard_thumbstick_yaxis_pressed": { - "componentProperty": "yAxis", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "xr_standard_thumbstick_yaxis_pressed_value", - "minNodeName": "xr_standard_thumbstick_yaxis_pressed_min", - "maxNodeName": "xr_standard_thumbstick_yaxis_pressed_max" - } - } - }, - "x-button": { - "type": "button", - "gamepadIndices": { - "button": 4 - }, - "rootNodeName": "x_button", - "visualResponses": { - "x_button_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "x_button_pressed_value", - "minNodeName": "x_button_pressed_min", - "maxNodeName": "x_button_pressed_max" - } - } - }, - "y-button": { - "type": "button", - "gamepadIndices": { - "button": 5 - }, - "rootNodeName": "y_button", - "visualResponses": { - "y_button_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "y_button_pressed_value", - "minNodeName": "y_button_pressed_min", - "maxNodeName": "y_button_pressed_max" - } - } - }, - "thumbrest": { - "type": "button", - "gamepadIndices": { - "button": 6 - }, - "rootNodeName": "thumbrest", - "visualResponses": { - "thumbrest_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "thumbrest_pressed_value", - "minNodeName": "thumbrest_pressed_min", - "maxNodeName": "thumbrest_pressed_max" - } - } - } - }, - "gamepadMapping": "xr-standard", - "rootNodeName": "meta-quest-touch-plus-left", - "assetPath": "left.glb" - }, - "right": { - "selectComponentId": "xr-standard-trigger", - "components": { - "xr-standard-trigger": { - "type": "trigger", - "gamepadIndices": { - "button": 0 - }, - "rootNodeName": "xr_standard_trigger", - "visualResponses": { - "xr_standard_trigger_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "xr_standard_trigger_pressed_value", - "minNodeName": "xr_standard_trigger_pressed_min", - "maxNodeName": "xr_standard_trigger_pressed_max" - } - } - }, - "xr-standard-squeeze": { - "type": "squeeze", - "gamepadIndices": { - "button": 1 - }, - "rootNodeName": "xr_standard_squeeze", - "visualResponses": { - "xr_standard_squeeze_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "xr_standard_squeeze_pressed_value", - "minNodeName": "xr_standard_squeeze_pressed_min", - "maxNodeName": "xr_standard_squeeze_pressed_max" - } - } - }, - "xr-standard-thumbstick": { - "type": "thumbstick", - "gamepadIndices": { - "button": 3, - "xAxis": 2, - "yAxis": 3 - }, - "rootNodeName": "xr_standard_thumbstick", - "visualResponses": { - "xr_standard_thumbstick_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "xr_standard_thumbstick_pressed_value", - "minNodeName": "xr_standard_thumbstick_pressed_min", - "maxNodeName": "xr_standard_thumbstick_pressed_max" - }, - "xr_standard_thumbstick_xaxis_pressed": { - "componentProperty": "xAxis", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "xr_standard_thumbstick_xaxis_pressed_value", - "minNodeName": "xr_standard_thumbstick_xaxis_pressed_min", - "maxNodeName": "xr_standard_thumbstick_xaxis_pressed_max" - }, - "xr_standard_thumbstick_yaxis_pressed": { - "componentProperty": "yAxis", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "xr_standard_thumbstick_yaxis_pressed_value", - "minNodeName": "xr_standard_thumbstick_yaxis_pressed_min", - "maxNodeName": "xr_standard_thumbstick_yaxis_pressed_max" - } - } - }, - "a-button": { - "type": "button", - "gamepadIndices": { - "button": 4 - }, - "rootNodeName": "a_button", - "visualResponses": { - "a_button_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "a_button_pressed_value", - "minNodeName": "a_button_pressed_min", - "maxNodeName": "a_button_pressed_max" - } - } - }, - "b-button": { - "type": "button", - "gamepadIndices": { - "button": 5 - }, - "rootNodeName": "b_button", - "visualResponses": { - "b_button_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "b_button_pressed_value", - "minNodeName": "b_button_pressed_min", - "maxNodeName": "b_button_pressed_max" - } - } - }, - "thumbrest": { - "type": "button", - "gamepadIndices": { - "button": 6 - }, - "rootNodeName": "thumbrest", - "visualResponses": { - "thumbrest_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "thumbrest_pressed_value", - "minNodeName": "thumbrest_pressed_min", - "maxNodeName": "thumbrest_pressed_max" - } - } - } - }, - "gamepadMapping": "xr-standard", - "rootNodeName": "meta-quest-touch-plus-right", - "assetPath": "right.glb" - } - } -} \ No newline at end of file diff --git a/assets-source/controllers/meta-quest-touch-plus/right.glb b/assets-source/controllers/meta-quest-touch-plus/right.glb deleted file mode 100644 index ed0d521c..00000000 Binary files a/assets-source/controllers/meta-quest-touch-plus/right.glb and /dev/null differ diff --git a/assets-source/controllers/meta-quest-touch-pro/left.glb b/assets-source/controllers/meta-quest-touch-pro/left.glb deleted file mode 100644 index df8c76b8..00000000 Binary files a/assets-source/controllers/meta-quest-touch-pro/left.glb and /dev/null differ diff --git a/assets-source/controllers/meta-quest-touch-pro/profile.json b/assets-source/controllers/meta-quest-touch-pro/profile.json deleted file mode 100644 index 989fa4fa..00000000 --- a/assets-source/controllers/meta-quest-touch-pro/profile.json +++ /dev/null @@ -1,330 +0,0 @@ -{ - "profileId": "meta-quest-touch-pro", - "fallbackProfileIds": [ - "oculus-touch-v2", - "oculus-touch", - "generic-trigger-squeeze-thumbstick" - ], - "layouts": { - "left": { - "selectComponentId": "xr-standard-trigger", - "components": { - "xr-standard-trigger": { - "type": "trigger", - "gamepadIndices": { - "button": 0 - }, - "rootNodeName": "xr_standard_trigger", - "visualResponses": { - "xr_standard_trigger_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "xr_standard_trigger_pressed_value", - "minNodeName": "xr_standard_trigger_pressed_min", - "maxNodeName": "xr_standard_trigger_pressed_max" - } - } - }, - "xr-standard-squeeze": { - "type": "squeeze", - "gamepadIndices": { - "button": 1 - }, - "rootNodeName": "xr_standard_squeeze", - "visualResponses": { - "xr_standard_squeeze_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "xr_standard_squeeze_pressed_value", - "minNodeName": "xr_standard_squeeze_pressed_min", - "maxNodeName": "xr_standard_squeeze_pressed_max" - } - } - }, - "xr-standard-thumbstick": { - "type": "thumbstick", - "gamepadIndices": { - "button": 3, - "xAxis": 2, - "yAxis": 3 - }, - "rootNodeName": "xr_standard_thumbstick", - "visualResponses": { - "xr_standard_thumbstick_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "xr_standard_thumbstick_pressed_value", - "minNodeName": "xr_standard_thumbstick_pressed_min", - "maxNodeName": "xr_standard_thumbstick_pressed_max" - }, - "xr_standard_thumbstick_xaxis_pressed": { - "componentProperty": "xAxis", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "xr_standard_thumbstick_xaxis_pressed_value", - "minNodeName": "xr_standard_thumbstick_xaxis_pressed_min", - "maxNodeName": "xr_standard_thumbstick_xaxis_pressed_max" - }, - "xr_standard_thumbstick_yaxis_pressed": { - "componentProperty": "yAxis", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "xr_standard_thumbstick_yaxis_pressed_value", - "minNodeName": "xr_standard_thumbstick_yaxis_pressed_min", - "maxNodeName": "xr_standard_thumbstick_yaxis_pressed_max" - } - } - }, - "x-button": { - "type": "button", - "gamepadIndices": { - "button": 4 - }, - "rootNodeName": "x_button", - "visualResponses": { - "x_button_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "x_button_pressed_value", - "minNodeName": "x_button_pressed_min", - "maxNodeName": "x_button_pressed_max" - } - } - }, - "y-button": { - "type": "button", - "gamepadIndices": { - "button": 5 - }, - "rootNodeName": "y_button", - "visualResponses": { - "y_button_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "y_button_pressed_value", - "minNodeName": "y_button_pressed_min", - "maxNodeName": "y_button_pressed_max" - } - } - }, - "thumbrest": { - "type": "button", - "gamepadIndices": { - "button": 6 - }, - "rootNodeName": "thumbrest", - "visualResponses": { - "thumbrest_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "thumbrest_pressed_value", - "minNodeName": "thumbrest_pressed_min", - "maxNodeName": "thumbrest_pressed_max" - } - } - } - }, - "gamepadMapping": "xr-standard", - "rootNodeName": "meta-quest-touch-pro-left", - "assetPath": "left.glb" - }, - "right": { - "selectComponentId": "xr-standard-trigger", - "components": { - "xr-standard-trigger": { - "type": "trigger", - "gamepadIndices": { - "button": 0 - }, - "rootNodeName": "xr_standard_trigger", - "visualResponses": { - "xr_standard_trigger_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "xr_standard_trigger_pressed_value", - "minNodeName": "xr_standard_trigger_pressed_min", - "maxNodeName": "xr_standard_trigger_pressed_max" - } - } - }, - "xr-standard-squeeze": { - "type": "squeeze", - "gamepadIndices": { - "button": 1 - }, - "rootNodeName": "xr_standard_squeeze", - "visualResponses": { - "xr_standard_squeeze_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "xr_standard_squeeze_pressed_value", - "minNodeName": "xr_standard_squeeze_pressed_min", - "maxNodeName": "xr_standard_squeeze_pressed_max" - } - } - }, - "xr-standard-thumbstick": { - "type": "thumbstick", - "gamepadIndices": { - "button": 3, - "xAxis": 2, - "yAxis": 3 - }, - "rootNodeName": "xr_standard_thumbstick", - "visualResponses": { - "xr_standard_thumbstick_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "xr_standard_thumbstick_pressed_value", - "minNodeName": "xr_standard_thumbstick_pressed_min", - "maxNodeName": "xr_standard_thumbstick_pressed_max" - }, - "xr_standard_thumbstick_xaxis_pressed": { - "componentProperty": "xAxis", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "xr_standard_thumbstick_xaxis_pressed_value", - "minNodeName": "xr_standard_thumbstick_xaxis_pressed_min", - "maxNodeName": "xr_standard_thumbstick_xaxis_pressed_max" - }, - "xr_standard_thumbstick_yaxis_pressed": { - "componentProperty": "yAxis", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "xr_standard_thumbstick_yaxis_pressed_value", - "minNodeName": "xr_standard_thumbstick_yaxis_pressed_min", - "maxNodeName": "xr_standard_thumbstick_yaxis_pressed_max" - } - } - }, - "a-button": { - "type": "button", - "gamepadIndices": { - "button": 4 - }, - "rootNodeName": "a_button", - "visualResponses": { - "a_button_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "a_button_pressed_value", - "minNodeName": "a_button_pressed_min", - "maxNodeName": "a_button_pressed_max" - } - } - }, - "b-button": { - "type": "button", - "gamepadIndices": { - "button": 5 - }, - "rootNodeName": "b_button", - "visualResponses": { - "b_button_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "b_button_pressed_value", - "minNodeName": "b_button_pressed_min", - "maxNodeName": "b_button_pressed_max" - } - } - }, - "thumbrest": { - "type": "button", - "gamepadIndices": { - "button": 6 - }, - "rootNodeName": "thumbrest", - "visualResponses": { - "thumbrest_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "thumbrest_pressed_value", - "minNodeName": "thumbrest_pressed_min", - "maxNodeName": "thumbrest_pressed_max" - } - } - } - }, - "gamepadMapping": "xr-standard", - "rootNodeName": "meta-quest-touch-pro-right", - "assetPath": "right.glb" - } - } -} \ No newline at end of file diff --git a/assets-source/controllers/meta-quest-touch-pro/right.glb b/assets-source/controllers/meta-quest-touch-pro/right.glb deleted file mode 100644 index 79d235dc..00000000 Binary files a/assets-source/controllers/meta-quest-touch-pro/right.glb and /dev/null differ diff --git a/assets-source/controllers/oculus-touch-v2/left.glb b/assets-source/controllers/oculus-touch-v2/left.glb deleted file mode 100644 index 5a1107f3..00000000 Binary files a/assets-source/controllers/oculus-touch-v2/left.glb and /dev/null differ diff --git a/assets-source/controllers/oculus-touch-v2/profile.json b/assets-source/controllers/oculus-touch-v2/profile.json deleted file mode 100644 index c5676b25..00000000 --- a/assets-source/controllers/oculus-touch-v2/profile.json +++ /dev/null @@ -1,329 +0,0 @@ -{ - "profileId": "oculus-touch-v2", - "fallbackProfileIds": [ - "oculus-touch", - "generic-trigger-squeeze-thumbstick" - ], - "layouts": { - "left": { - "selectComponentId": "xr-standard-trigger", - "components": { - "xr-standard-trigger": { - "type": "trigger", - "gamepadIndices": { - "button": 0 - }, - "rootNodeName": "xr_standard_trigger", - "visualResponses": { - "xr_standard_trigger_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "xr_standard_trigger_pressed_value", - "minNodeName": "xr_standard_trigger_pressed_min", - "maxNodeName": "xr_standard_trigger_pressed_max" - } - } - }, - "xr-standard-squeeze": { - "type": "squeeze", - "gamepadIndices": { - "button": 1 - }, - "rootNodeName": "xr_standard_squeeze", - "visualResponses": { - "xr_standard_squeeze_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "xr_standard_squeeze_pressed_value", - "minNodeName": "xr_standard_squeeze_pressed_min", - "maxNodeName": "xr_standard_squeeze_pressed_max" - } - } - }, - "xr-standard-thumbstick": { - "type": "thumbstick", - "gamepadIndices": { - "button": 3, - "xAxis": 2, - "yAxis": 3 - }, - "rootNodeName": "xr_standard_thumbstick", - "visualResponses": { - "xr_standard_thumbstick_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "xr_standard_thumbstick_pressed_value", - "minNodeName": "xr_standard_thumbstick_pressed_min", - "maxNodeName": "xr_standard_thumbstick_pressed_max" - }, - "xr_standard_thumbstick_xaxis_pressed": { - "componentProperty": "xAxis", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "xr_standard_thumbstick_xaxis_pressed_value", - "minNodeName": "xr_standard_thumbstick_xaxis_pressed_min", - "maxNodeName": "xr_standard_thumbstick_xaxis_pressed_max" - }, - "xr_standard_thumbstick_yaxis_pressed": { - "componentProperty": "yAxis", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "xr_standard_thumbstick_yaxis_pressed_value", - "minNodeName": "xr_standard_thumbstick_yaxis_pressed_min", - "maxNodeName": "xr_standard_thumbstick_yaxis_pressed_max" - } - } - }, - "x-button": { - "type": "button", - "gamepadIndices": { - "button": 4 - }, - "rootNodeName": "x_button", - "visualResponses": { - "x_button_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "x_button_pressed_value", - "minNodeName": "x_button_pressed_min", - "maxNodeName": "x_button_pressed_max" - } - } - }, - "y-button": { - "type": "button", - "gamepadIndices": { - "button": 5 - }, - "rootNodeName": "y_button", - "visualResponses": { - "y_button_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "y_button_pressed_value", - "minNodeName": "y_button_pressed_min", - "maxNodeName": "y_button_pressed_max" - } - } - }, - "thumbrest": { - "type": "button", - "gamepadIndices": { - "button": 6 - }, - "rootNodeName": "thumbrest", - "visualResponses": { - "thumbrest_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "thumbrest_pressed_value", - "minNodeName": "thumbrest_pressed_min", - "maxNodeName": "thumbrest_pressed_max" - } - } - } - }, - "gamepadMapping": "xr-standard", - "rootNodeName": "oculus-touch-v2-left", - "assetPath": "left.glb" - }, - "right": { - "selectComponentId": "xr-standard-trigger", - "components": { - "xr-standard-trigger": { - "type": "trigger", - "gamepadIndices": { - "button": 0 - }, - "rootNodeName": "xr_standard_trigger", - "visualResponses": { - "xr_standard_trigger_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "xr_standard_trigger_pressed_value", - "minNodeName": "xr_standard_trigger_pressed_min", - "maxNodeName": "xr_standard_trigger_pressed_max" - } - } - }, - "xr-standard-squeeze": { - "type": "squeeze", - "gamepadIndices": { - "button": 1 - }, - "rootNodeName": "xr_standard_squeeze", - "visualResponses": { - "xr_standard_squeeze_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "xr_standard_squeeze_pressed_value", - "minNodeName": "xr_standard_squeeze_pressed_min", - "maxNodeName": "xr_standard_squeeze_pressed_max" - } - } - }, - "xr-standard-thumbstick": { - "type": "thumbstick", - "gamepadIndices": { - "button": 3, - "xAxis": 2, - "yAxis": 3 - }, - "rootNodeName": "xr_standard_thumbstick", - "visualResponses": { - "xr_standard_thumbstick_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "xr_standard_thumbstick_pressed_value", - "minNodeName": "xr_standard_thumbstick_pressed_min", - "maxNodeName": "xr_standard_thumbstick_pressed_max" - }, - "xr_standard_thumbstick_xaxis_pressed": { - "componentProperty": "xAxis", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "xr_standard_thumbstick_xaxis_pressed_value", - "minNodeName": "xr_standard_thumbstick_xaxis_pressed_min", - "maxNodeName": "xr_standard_thumbstick_xaxis_pressed_max" - }, - "xr_standard_thumbstick_yaxis_pressed": { - "componentProperty": "yAxis", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "xr_standard_thumbstick_yaxis_pressed_value", - "minNodeName": "xr_standard_thumbstick_yaxis_pressed_min", - "maxNodeName": "xr_standard_thumbstick_yaxis_pressed_max" - } - } - }, - "a-button": { - "type": "button", - "gamepadIndices": { - "button": 4 - }, - "rootNodeName": "a_button", - "visualResponses": { - "a_button_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "a_button_pressed_value", - "minNodeName": "a_button_pressed_min", - "maxNodeName": "a_button_pressed_max" - } - } - }, - "b-button": { - "type": "button", - "gamepadIndices": { - "button": 5 - }, - "rootNodeName": "b_button", - "visualResponses": { - "b_button_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "b_button_pressed_value", - "minNodeName": "b_button_pressed_min", - "maxNodeName": "b_button_pressed_max" - } - } - }, - "thumbrest": { - "type": "button", - "gamepadIndices": { - "button": 6 - }, - "rootNodeName": "thumbrest", - "visualResponses": { - "thumbrest_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "thumbrest_pressed_value", - "minNodeName": "thumbrest_pressed_min", - "maxNodeName": "thumbrest_pressed_max" - } - } - } - }, - "gamepadMapping": "xr-standard", - "rootNodeName": "oculus-touch-v2-right", - "assetPath": "right.glb" - } - } -} \ No newline at end of file diff --git a/assets-source/controllers/oculus-touch-v2/right.glb b/assets-source/controllers/oculus-touch-v2/right.glb deleted file mode 100644 index ca07031e..00000000 Binary files a/assets-source/controllers/oculus-touch-v2/right.glb and /dev/null differ diff --git a/assets-source/controllers/oculus-touch-v3/left.glb b/assets-source/controllers/oculus-touch-v3/left.glb deleted file mode 100644 index e247b11c..00000000 Binary files a/assets-source/controllers/oculus-touch-v3/left.glb and /dev/null differ diff --git a/assets-source/controllers/oculus-touch-v3/profile.json b/assets-source/controllers/oculus-touch-v3/profile.json deleted file mode 100644 index a61c32c7..00000000 --- a/assets-source/controllers/oculus-touch-v3/profile.json +++ /dev/null @@ -1,330 +0,0 @@ -{ - "profileId": "oculus-touch-v3", - "fallbackProfileIds": [ - "oculus-touch-v2", - "oculus-touch", - "generic-trigger-squeeze-thumbstick" - ], - "layouts": { - "left": { - "selectComponentId": "xr-standard-trigger", - "components": { - "xr-standard-trigger": { - "type": "trigger", - "gamepadIndices": { - "button": 0 - }, - "rootNodeName": "xr_standard_trigger", - "visualResponses": { - "xr_standard_trigger_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "xr_standard_trigger_pressed_value", - "minNodeName": "xr_standard_trigger_pressed_min", - "maxNodeName": "xr_standard_trigger_pressed_max" - } - } - }, - "xr-standard-squeeze": { - "type": "squeeze", - "gamepadIndices": { - "button": 1 - }, - "rootNodeName": "xr_standard_squeeze", - "visualResponses": { - "xr_standard_squeeze_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "xr_standard_squeeze_pressed_value", - "minNodeName": "xr_standard_squeeze_pressed_min", - "maxNodeName": "xr_standard_squeeze_pressed_max" - } - } - }, - "xr-standard-thumbstick": { - "type": "thumbstick", - "gamepadIndices": { - "button": 3, - "xAxis": 2, - "yAxis": 3 - }, - "rootNodeName": "xr_standard_thumbstick", - "visualResponses": { - "xr_standard_thumbstick_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "xr_standard_thumbstick_pressed_value", - "minNodeName": "xr_standard_thumbstick_pressed_min", - "maxNodeName": "xr_standard_thumbstick_pressed_max" - }, - "xr_standard_thumbstick_xaxis_pressed": { - "componentProperty": "xAxis", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "xr_standard_thumbstick_xaxis_pressed_value", - "minNodeName": "xr_standard_thumbstick_xaxis_pressed_min", - "maxNodeName": "xr_standard_thumbstick_xaxis_pressed_max" - }, - "xr_standard_thumbstick_yaxis_pressed": { - "componentProperty": "yAxis", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "xr_standard_thumbstick_yaxis_pressed_value", - "minNodeName": "xr_standard_thumbstick_yaxis_pressed_min", - "maxNodeName": "xr_standard_thumbstick_yaxis_pressed_max" - } - } - }, - "x-button": { - "type": "button", - "gamepadIndices": { - "button": 4 - }, - "rootNodeName": "x_button", - "visualResponses": { - "x_button_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "x_button_pressed_value", - "minNodeName": "x_button_pressed_min", - "maxNodeName": "x_button_pressed_max" - } - } - }, - "y-button": { - "type": "button", - "gamepadIndices": { - "button": 5 - }, - "rootNodeName": "y_button", - "visualResponses": { - "y_button_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "y_button_pressed_value", - "minNodeName": "y_button_pressed_min", - "maxNodeName": "y_button_pressed_max" - } - } - }, - "thumbrest": { - "type": "button", - "gamepadIndices": { - "button": 6 - }, - "rootNodeName": "thumbrest", - "visualResponses": { - "thumbrest_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "thumbrest_pressed_value", - "minNodeName": "thumbrest_pressed_min", - "maxNodeName": "thumbrest_pressed_max" - } - } - } - }, - "gamepadMapping": "xr-standard", - "rootNodeName": "oculus-touch-v3-left", - "assetPath": "left.glb" - }, - "right": { - "selectComponentId": "xr-standard-trigger", - "components": { - "xr-standard-trigger": { - "type": "trigger", - "gamepadIndices": { - "button": 0 - }, - "rootNodeName": "xr_standard_trigger", - "visualResponses": { - "xr_standard_trigger_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "xr_standard_trigger_pressed_value", - "minNodeName": "xr_standard_trigger_pressed_min", - "maxNodeName": "xr_standard_trigger_pressed_max" - } - } - }, - "xr-standard-squeeze": { - "type": "squeeze", - "gamepadIndices": { - "button": 1 - }, - "rootNodeName": "xr_standard_squeeze", - "visualResponses": { - "xr_standard_squeeze_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "xr_standard_squeeze_pressed_value", - "minNodeName": "xr_standard_squeeze_pressed_min", - "maxNodeName": "xr_standard_squeeze_pressed_max" - } - } - }, - "xr-standard-thumbstick": { - "type": "thumbstick", - "gamepadIndices": { - "button": 3, - "xAxis": 2, - "yAxis": 3 - }, - "rootNodeName": "xr_standard_thumbstick", - "visualResponses": { - "xr_standard_thumbstick_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "xr_standard_thumbstick_pressed_value", - "minNodeName": "xr_standard_thumbstick_pressed_min", - "maxNodeName": "xr_standard_thumbstick_pressed_max" - }, - "xr_standard_thumbstick_xaxis_pressed": { - "componentProperty": "xAxis", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "xr_standard_thumbstick_xaxis_pressed_value", - "minNodeName": "xr_standard_thumbstick_xaxis_pressed_min", - "maxNodeName": "xr_standard_thumbstick_xaxis_pressed_max" - }, - "xr_standard_thumbstick_yaxis_pressed": { - "componentProperty": "yAxis", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "xr_standard_thumbstick_yaxis_pressed_value", - "minNodeName": "xr_standard_thumbstick_yaxis_pressed_min", - "maxNodeName": "xr_standard_thumbstick_yaxis_pressed_max" - } - } - }, - "a-button": { - "type": "button", - "gamepadIndices": { - "button": 4 - }, - "rootNodeName": "a_button", - "visualResponses": { - "a_button_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "a_button_pressed_value", - "minNodeName": "a_button_pressed_min", - "maxNodeName": "a_button_pressed_max" - } - } - }, - "b-button": { - "type": "button", - "gamepadIndices": { - "button": 5 - }, - "rootNodeName": "b_button", - "visualResponses": { - "b_button_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "b_button_pressed_value", - "minNodeName": "b_button_pressed_min", - "maxNodeName": "b_button_pressed_max" - } - } - }, - "thumbrest": { - "type": "button", - "gamepadIndices": { - "button": 6 - }, - "rootNodeName": "thumbrest", - "visualResponses": { - "thumbrest_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "thumbrest_pressed_value", - "minNodeName": "thumbrest_pressed_min", - "maxNodeName": "thumbrest_pressed_max" - } - } - } - }, - "gamepadMapping": "xr-standard", - "rootNodeName": "oculus-touch-v3-right", - "assetPath": "right.glb" - } - } -} \ No newline at end of file diff --git a/assets-source/controllers/oculus-touch-v3/right.glb b/assets-source/controllers/oculus-touch-v3/right.glb deleted file mode 100644 index 79ffc272..00000000 Binary files a/assets-source/controllers/oculus-touch-v3/right.glb and /dev/null differ diff --git a/assets-source/controllers/pico-4/left.glb b/assets-source/controllers/pico-4/left.glb deleted file mode 100644 index e98215f0..00000000 Binary files a/assets-source/controllers/pico-4/left.glb and /dev/null differ diff --git a/assets-source/controllers/pico-4/profile.json b/assets-source/controllers/pico-4/profile.json deleted file mode 100644 index 61fb7202..00000000 --- a/assets-source/controllers/pico-4/profile.json +++ /dev/null @@ -1,286 +0,0 @@ -{ - "profileId": "pico-4", - "fallbackProfileIds": [ - "generic-trigger-squeeze-thumbstick" - ], - "layouts": { - "left": { - "selectComponentId": "xr-standard-trigger", - "components": { - "xr-standard-trigger": { - "type": "trigger", - "gamepadIndices": { - "button": 0 - }, - "rootNodeName": "xr_standard_trigger", - "visualResponses": { - "xr_standard_trigger_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "xr_standard_trigger_pressed_value", - "minNodeName": "xr_standard_trigger_pressed_min", - "maxNodeName": "xr_standard_trigger_pressed_max" - } - } - }, - "xr-standard-squeeze": { - "type": "squeeze", - "gamepadIndices": { - "button": 1 - }, - "rootNodeName": "xr_standard_squeeze", - "visualResponses": { - "xr_standard_squeeze_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "xr_standard_squeeze_pressed_value", - "minNodeName": "xr_standard_squeeze_pressed_min", - "maxNodeName": "xr_standard_squeeze_pressed_max" - } - } - }, - "xr-standard-thumbstick": { - "type": "thumbstick", - "gamepadIndices": { - "button": 3, - "xAxis": 2, - "yAxis": 3 - }, - "rootNodeName": "xr_standard_thumbstick", - "visualResponses": { - "xr_standard_thumbstick_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "xr_standard_thumbstick_pressed_value", - "minNodeName": "xr_standard_thumbstick_pressed_min", - "maxNodeName": "xr_standard_thumbstick_pressed_max" - }, - "xr_standard_thumbstick_xaxis_pressed": { - "componentProperty": "xAxis", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "xr_standard_thumbstick_xaxis_pressed_value", - "minNodeName": "xr_standard_thumbstick_xaxis_pressed_min", - "maxNodeName": "xr_standard_thumbstick_xaxis_pressed_max" - }, - "xr_standard_thumbstick_yaxis_pressed": { - "componentProperty": "yAxis", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "xr_standard_thumbstick_yaxis_pressed_value", - "minNodeName": "xr_standard_thumbstick_yaxis_pressed_min", - "maxNodeName": "xr_standard_thumbstick_yaxis_pressed_max" - } - } - }, - "x-button": { - "type": "button", - "gamepadIndices": { - "button": 4 - }, - "rootNodeName": "x_button", - "visualResponses": { - "x_button_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "x_button_pressed_value", - "minNodeName": "x_button_pressed_min", - "maxNodeName": "x_button_pressed_max" - } - } - }, - "y-button": { - "type": "button", - "gamepadIndices": { - "button": 5 - }, - "rootNodeName": "y_button", - "visualResponses": { - "y_button_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "y_button_pressed_value", - "minNodeName": "y_button_pressed_min", - "maxNodeName": "y_button_pressed_max" - } - } - } - }, - "gamepadMapping": "xr-standard", - "rootNodeName": "pico-4-left", - "assetPath": "left.glb" - }, - "right": { - "selectComponentId": "xr-standard-trigger", - "components": { - "xr-standard-trigger": { - "type": "trigger", - "gamepadIndices": { - "button": 0 - }, - "rootNodeName": "xr_standard_trigger", - "visualResponses": { - "xr_standard_trigger_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "xr_standard_trigger_pressed_value", - "minNodeName": "xr_standard_trigger_pressed_min", - "maxNodeName": "xr_standard_trigger_pressed_max" - } - } - }, - "xr-standard-squeeze": { - "type": "squeeze", - "gamepadIndices": { - "button": 1 - }, - "rootNodeName": "xr_standard_squeeze", - "visualResponses": { - "xr_standard_squeeze_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "xr_standard_squeeze_pressed_value", - "minNodeName": "xr_standard_squeeze_pressed_min", - "maxNodeName": "xr_standard_squeeze_pressed_max" - } - } - }, - "xr-standard-thumbstick": { - "type": "thumbstick", - "gamepadIndices": { - "button": 3, - "xAxis": 2, - "yAxis": 3 - }, - "rootNodeName": "xr_standard_thumbstick", - "visualResponses": { - "xr_standard_thumbstick_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "xr_standard_thumbstick_pressed_value", - "minNodeName": "xr_standard_thumbstick_pressed_min", - "maxNodeName": "xr_standard_thumbstick_pressed_max" - }, - "xr_standard_thumbstick_xaxis_pressed": { - "componentProperty": "xAxis", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "xr_standard_thumbstick_xaxis_pressed_value", - "minNodeName": "xr_standard_thumbstick_xaxis_pressed_min", - "maxNodeName": "xr_standard_thumbstick_xaxis_pressed_max" - }, - "xr_standard_thumbstick_yaxis_pressed": { - "componentProperty": "yAxis", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "xr_standard_thumbstick_yaxis_pressed_value", - "minNodeName": "xr_standard_thumbstick_yaxis_pressed_min", - "maxNodeName": "xr_standard_thumbstick_yaxis_pressed_max" - } - } - }, - "a-button": { - "type": "button", - "gamepadIndices": { - "button": 4 - }, - "rootNodeName": "a_button", - "visualResponses": { - "a_button_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "a_button_pressed_value", - "minNodeName": "a_button_pressed_min", - "maxNodeName": "a_button_pressed_max" - } - } - }, - "b-button": { - "type": "button", - "gamepadIndices": { - "button": 5 - }, - "rootNodeName": "b_button", - "visualResponses": { - "b_button_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "b_button_pressed_value", - "minNodeName": "b_button_pressed_min", - "maxNodeName": "b_button_pressed_max" - } - } - } - }, - "gamepadMapping": "xr-standard", - "rootNodeName": "pico-4-right", - "assetPath": "right.glb" - } - } -} \ No newline at end of file diff --git a/assets-source/controllers/pico-4/right.glb b/assets-source/controllers/pico-4/right.glb deleted file mode 100644 index 2ba9a967..00000000 Binary files a/assets-source/controllers/pico-4/right.glb and /dev/null differ diff --git a/assets-source/controllers/pico-neo3/left.glb b/assets-source/controllers/pico-neo3/left.glb deleted file mode 100644 index fb983686..00000000 Binary files a/assets-source/controllers/pico-neo3/left.glb and /dev/null differ diff --git a/assets-source/controllers/pico-neo3/profile.json b/assets-source/controllers/pico-neo3/profile.json deleted file mode 100644 index ec90a910..00000000 --- a/assets-source/controllers/pico-neo3/profile.json +++ /dev/null @@ -1,286 +0,0 @@ -{ - "profileId": "pico-neo3", - "fallbackProfileIds": [ - "generic-trigger-squeeze-thumbstick" - ], - "layouts": { - "left": { - "selectComponentId": "xr-standard-trigger", - "components": { - "xr-standard-trigger": { - "type": "trigger", - "gamepadIndices": { - "button": 0 - }, - "rootNodeName": "xr_standard_trigger", - "visualResponses": { - "xr_standard_trigger_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "xr_standard_trigger_pressed_value", - "minNodeName": "xr_standard_trigger_pressed_min", - "maxNodeName": "xr_standard_trigger_pressed_max" - } - } - }, - "xr-standard-squeeze": { - "type": "squeeze", - "gamepadIndices": { - "button": 1 - }, - "rootNodeName": "xr_standard_squeeze", - "visualResponses": { - "xr_standard_squeeze_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "xr_standard_squeeze_pressed_value", - "minNodeName": "xr_standard_squeeze_pressed_min", - "maxNodeName": "xr_standard_squeeze_pressed_max" - } - } - }, - "xr-standard-thumbstick": { - "type": "thumbstick", - "gamepadIndices": { - "button": 3, - "xAxis": 2, - "yAxis": 3 - }, - "rootNodeName": "xr_standard_thumbstick", - "visualResponses": { - "xr_standard_thumbstick_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "xr_standard_thumbstick_pressed_value", - "minNodeName": "xr_standard_thumbstick_pressed_min", - "maxNodeName": "xr_standard_thumbstick_pressed_max" - }, - "xr_standard_thumbstick_xaxis_pressed": { - "componentProperty": "xAxis", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "xr_standard_thumbstick_xaxis_pressed_value", - "minNodeName": "xr_standard_thumbstick_xaxis_pressed_min", - "maxNodeName": "xr_standard_thumbstick_xaxis_pressed_max" - }, - "xr_standard_thumbstick_yaxis_pressed": { - "componentProperty": "yAxis", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "xr_standard_thumbstick_yaxis_pressed_value", - "minNodeName": "xr_standard_thumbstick_yaxis_pressed_min", - "maxNodeName": "xr_standard_thumbstick_yaxis_pressed_max" - } - } - }, - "x-button": { - "type": "button", - "gamepadIndices": { - "button": 4 - }, - "rootNodeName": "x_button", - "visualResponses": { - "x_button_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "x_button_pressed_value", - "minNodeName": "x_button_pressed_min", - "maxNodeName": "x_button_pressed_max" - } - } - }, - "y-button": { - "type": "button", - "gamepadIndices": { - "button": 5 - }, - "rootNodeName": "y_button", - "visualResponses": { - "y_button_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "y_button_pressed_value", - "minNodeName": "y_button_pressed_min", - "maxNodeName": "y_button_pressed_max" - } - } - } - }, - "gamepadMapping": "xr-standard", - "rootNodeName": "pico-neo3-left", - "assetPath": "left.glb" - }, - "right": { - "selectComponentId": "xr-standard-trigger", - "components": { - "xr-standard-trigger": { - "type": "trigger", - "gamepadIndices": { - "button": 0 - }, - "rootNodeName": "xr_standard_trigger", - "visualResponses": { - "xr_standard_trigger_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "xr_standard_trigger_pressed_value", - "minNodeName": "xr_standard_trigger_pressed_min", - "maxNodeName": "xr_standard_trigger_pressed_max" - } - } - }, - "xr-standard-squeeze": { - "type": "squeeze", - "gamepadIndices": { - "button": 1 - }, - "rootNodeName": "xr_standard_squeeze", - "visualResponses": { - "xr_standard_squeeze_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "xr_standard_squeeze_pressed_value", - "minNodeName": "xr_standard_squeeze_pressed_min", - "maxNodeName": "xr_standard_squeeze_pressed_max" - } - } - }, - "xr-standard-thumbstick": { - "type": "thumbstick", - "gamepadIndices": { - "button": 3, - "xAxis": 2, - "yAxis": 3 - }, - "rootNodeName": "xr_standard_thumbstick", - "visualResponses": { - "xr_standard_thumbstick_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "xr_standard_thumbstick_pressed_value", - "minNodeName": "xr_standard_thumbstick_pressed_min", - "maxNodeName": "xr_standard_thumbstick_pressed_max" - }, - "xr_standard_thumbstick_xaxis_pressed": { - "componentProperty": "xAxis", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "xr_standard_thumbstick_xaxis_pressed_value", - "minNodeName": "xr_standard_thumbstick_xaxis_pressed_min", - "maxNodeName": "xr_standard_thumbstick_xaxis_pressed_max" - }, - "xr_standard_thumbstick_yaxis_pressed": { - "componentProperty": "yAxis", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "xr_standard_thumbstick_yaxis_pressed_value", - "minNodeName": "xr_standard_thumbstick_yaxis_pressed_min", - "maxNodeName": "xr_standard_thumbstick_yaxis_pressed_max" - } - } - }, - "a-button": { - "type": "button", - "gamepadIndices": { - "button": 4 - }, - "rootNodeName": "a_button", - "visualResponses": { - "a_button_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "a_button_pressed_value", - "minNodeName": "a_button_pressed_min", - "maxNodeName": "a_button_pressed_max" - } - } - }, - "b-button": { - "type": "button", - "gamepadIndices": { - "button": 5 - }, - "rootNodeName": "b_button", - "visualResponses": { - "b_button_pressed": { - "componentProperty": "button", - "states": [ - "default", - "touched", - "pressed" - ], - "valueNodeProperty": "transform", - "valueNodeName": "b_button_pressed_value", - "minNodeName": "b_button_pressed_min", - "maxNodeName": "b_button_pressed_max" - } - } - } - }, - "gamepadMapping": "xr-standard", - "rootNodeName": "pico-neo3-right", - "assetPath": "right.glb" - } - } -} \ No newline at end of file diff --git a/assets-source/controllers/pico-neo3/right.glb b/assets-source/controllers/pico-neo3/right.glb deleted file mode 100644 index 043055bd..00000000 Binary files a/assets-source/controllers/pico-neo3/right.glb and /dev/null differ diff --git a/client/CMakeLists.txt b/client/CMakeLists.txt index 1fb0b874..e3de6b18 100644 --- a/client/CMakeLists.txt +++ b/client/CMakeLists.txt @@ -276,14 +276,17 @@ if(WIVRN_COMPRESS_GLB) else() wivrn_copy_file( SOURCE ${ASSETS_SRC_DIR}/ground.glb DESTINATION ${ASSETS_DIR}/ground.glb TARGET wivrn) endif() -wivrn_webxr_controller( SOURCE ${ASSETS_SRC_DIR}/controllers/generic-trigger-squeeze DESTINATION ${ASSETS_DIR}/controllers/generic-trigger-squeeze TARGET wivrn) -wivrn_webxr_controller( SOURCE ${ASSETS_SRC_DIR}/controllers/htc-vive-focus-3 DESTINATION ${ASSETS_DIR}/controllers/htc-vive-focus-3 TARGET wivrn) -wivrn_webxr_controller( SOURCE ${ASSETS_SRC_DIR}/controllers/meta-quest-touch-plus DESTINATION ${ASSETS_DIR}/controllers/meta-quest-touch-plus TARGET wivrn) -wivrn_webxr_controller( SOURCE ${ASSETS_SRC_DIR}/controllers/meta-quest-touch-pro DESTINATION ${ASSETS_DIR}/controllers/meta-quest-touch-pro TARGET wivrn) -wivrn_webxr_controller( SOURCE ${ASSETS_SRC_DIR}/controllers/oculus-touch-v2 DESTINATION ${ASSETS_DIR}/controllers/oculus-touch-v2 TARGET wivrn) -wivrn_webxr_controller( SOURCE ${ASSETS_SRC_DIR}/controllers/oculus-touch-v3 DESTINATION ${ASSETS_DIR}/controllers/oculus-touch-v3 TARGET wivrn) -wivrn_webxr_controller( SOURCE ${ASSETS_SRC_DIR}/controllers/pico-4 DESTINATION ${ASSETS_DIR}/controllers/pico-4 TARGET wivrn) -wivrn_webxr_controller( SOURCE ${ASSETS_SRC_DIR}/controllers/pico-neo3 DESTINATION ${ASSETS_DIR}/controllers/pico-neo3 TARGET wivrn) + +wivrn_webxr_download() +wivrn_webxr_controller(PROFILE generic-trigger-squeeze DESTINATION ${ASSETS_DIR}/controllers TARGET wivrn) +wivrn_webxr_controller(PROFILE htc-vive-focus-3 DESTINATION ${ASSETS_DIR}/controllers TARGET wivrn) +wivrn_webxr_controller(PROFILE meta-quest-touch-plus DESTINATION ${ASSETS_DIR}/controllers TARGET wivrn) +wivrn_webxr_controller(PROFILE meta-quest-touch-pro DESTINATION ${ASSETS_DIR}/controllers TARGET wivrn) +wivrn_webxr_controller(PROFILE oculus-touch-v2 DESTINATION ${ASSETS_DIR}/controllers TARGET wivrn) +wivrn_webxr_controller(PROFILE oculus-touch-v3 DESTINATION ${ASSETS_DIR}/controllers TARGET wivrn) +wivrn_webxr_controller(PROFILE pico-4 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) # Add the VR splash screen (only used on Quest) diff --git a/client/hardware.cpp b/client/hardware.cpp index 5685fd36..65c1cf3f 100644 --- a/client/hardware.cpp +++ b/client/hardware.cpp @@ -328,6 +328,7 @@ std::string controller_name() case model::htc_vive_xr_elite: return "htc-vive-focus-3"; case model::samsung_galaxy_xr: + return "samsung-galaxyxr"; case model::lynx_r1: case model::unknown: return "generic-trigger-squeeze"; diff --git a/cmake/GenerateAssets.cmake b/cmake/GenerateAssets.cmake index 47fab00c..b49da270 100644 --- a/cmake/GenerateAssets.cmake +++ b/cmake/GenerateAssets.cmake @@ -127,13 +127,29 @@ function(wivrn_copy_file) endif() endfunction() +function(wivrn_webxr_download) + if(NOT EXISTS ${FETCHCONTENT_BASE_DIR}/@webxr-input-profiles-1.0.20.tgz) + if (EXISTS ${CMAKE_SOURCE_DIR}/@webxr-input-profiles-1.0.20.tgz) + file(CREATE_LINK ${CMAKE_SOURCE_DIR}/@webxr-input-profiles-1.0.20.tgz ${FETCHCONTENT_BASE_DIR}/@webxr-input-profiles-1.0.20.tgz SYMBOLIC) + else() + file(DOWNLOAD https://registry.npmjs.com/@webxr-input-profiles/assets/-/assets-1.0.20.tgz + ${FETCHCONTENT_BASE_DIR}/@webxr-input-profiles-1.0.20.tgz + EXPECTED_HASH SHA256=30df2a2268220fc0d0e034bed1550aabdd7a2500573c5216f64fc70d59c3d91e) + endif() + endif() + + file(ARCHIVE_EXTRACT INPUT ${FETCHCONTENT_BASE_DIR}/@webxr-input-profiles-1.0.20.tgz DESTINATION ${FETCHCONTENT_BASE_DIR}/@webxr-input-profiles) +endfunction() + function(wivrn_webxr_controller) set(options) - set(oneValueArgs SOURCE DESTINATION TARGET) + set(oneValueArgs PROFILE DESTINATION TARGET) set(multiValueArgs) cmake_parse_arguments(PARSE_ARGV 0 arg "${options}" "${oneValueArgs}" "${multiValueArgs}") + set(arg_SOURCE ${FETCHCONTENT_BASE_DIR}/@webxr-input-profiles/package/dist/profiles/${arg_PROFILE}) + file(READ ${arg_SOURCE}/profile.json PROFILE_JSON) string(JSON NB_LAYOUTS LENGTH "${PROFILE_JSON}" layouts) @@ -149,11 +165,11 @@ function(wivrn_webxr_controller) set(TEMPFILE ${PROFILE_ID}-${LAYOUT_NAME}.glb) wivrn_gltf_transform_resize(SOURCE ${arg_SOURCE}/${ASSET_PATH} DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/${TEMPFILE} WIDTH 512 HEIGHT 512) - wivrn_gltf_transform_uastc(SOURCE ${CMAKE_CURRENT_BINARY_DIR}/${TEMPFILE} DESTINATION ${arg_DESTINATION}/${ASSET_PATH} ZSTD 20 TARGET ${arg_TARGET}) + wivrn_gltf_transform_uastc(SOURCE ${CMAKE_CURRENT_BINARY_DIR}/${TEMPFILE} DESTINATION ${arg_DESTINATION}/${arg_PROFILE}/${ASSET_PATH} ZSTD 20 TARGET ${arg_TARGET}) else() - wivrn_copy_file(SOURCE ${arg_SOURCE}/${ASSET_PATH} DESTINATION ${arg_DESTINATION}/${ASSET_PATH} TARGET ${arg_TARGET}) + wivrn_copy_file(SOURCE ${arg_SOURCE}/${ASSET_PATH} DESTINATION ${arg_DESTINATION}/${arg_PROFILE}/${ASSET_PATH} TARGET ${arg_TARGET}) endif() endforeach() - wivrn_copy_file(SOURCE ${arg_SOURCE}/profile.json DESTINATION ${arg_DESTINATION}/profile.json TARGET ${arg_TARGET}) + wivrn_copy_file(SOURCE ${arg_SOURCE}/profile.json DESTINATION ${arg_DESTINATION}/${arg_PROFILE}/profile.json TARGET ${arg_TARGET}) endfunction()