1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Adding signals and events to OpenXR interface

Improving interaction profile logic
This commit is contained in:
Bastiaan Olij
2022-03-05 21:09:21 +11:00
parent 450ebaab9f
commit d11cb5fe98
11 changed files with 700 additions and 200 deletions

View File

@@ -278,6 +278,20 @@ String OpenXRUtil::get_session_state_name(XrSessionState p_session_state) {
}
}
String OpenXRUtil::get_action_type_name(XrActionType p_action_type) {
switch (p_action_type) {
ENUM_TO_STRING_CASE(XR_ACTION_TYPE_BOOLEAN_INPUT)
ENUM_TO_STRING_CASE(XR_ACTION_TYPE_FLOAT_INPUT)
ENUM_TO_STRING_CASE(XR_ACTION_TYPE_VECTOR2F_INPUT)
ENUM_TO_STRING_CASE(XR_ACTION_TYPE_POSE_INPUT)
ENUM_TO_STRING_CASE(XR_ACTION_TYPE_VIBRATION_OUTPUT)
ENUM_TO_STRING_CASE(XR_ACTION_TYPE_MAX_ENUM)
default: {
return String("Action type ") + String::num_int64(int64_t(p_action_type));
} break;
}
}
String OpenXRUtil::make_xr_version_string(XrVersion p_version) {
String version;