From 478163de69ed051eeb402e1c37ebff6695de48c9 Mon Sep 17 00:00:00 2001 From: Mamadou Babaei Date: Tue, 16 Jun 2026 14:03:16 +0200 Subject: [PATCH] add missing bp function USGLibraryKismetLibrary::GetBackendType & ESGBackendType::AndroidStrings enumerator --- Handbook/src/appendix/changelog.md | 2 ++ .../Private/SGCoreKismet/SGLibraryKismetLibrary.cpp | 5 +++++ .../Public/SGCoreKismet/SGLibraryKismetLibrary.h | 6 ++++++ Source/SenseGloveTypes/Public/SGTypes/SGCoreTypes.h | 3 +++ 4 files changed, 16 insertions(+) diff --git a/Handbook/src/appendix/changelog.md b/Handbook/src/appendix/changelog.md index b66582a6..c64a66de 100644 --- a/Handbook/src/appendix/changelog.md +++ b/Handbook/src/appendix/changelog.md @@ -21,6 +21,8 @@ This minor release introduces a major IPC overhaul, significant inter-process co - Added third-party module `SGFlatBuffersThirdPartyLibs`. - Added third-party module `SGNngThirdPartyLibs`. - Added `SGBuildHacks/SGInclude_Core_DeviceTypes`. +- Added missing `ESGBackendType::AndroidStrings` enumerator. +- Added missing SenseGlove API Blueprint function `USGLibraryKismetLibrary::GetBackendType()`. ### Fixed diff --git a/Source/SenseGloveCoreKismet/Private/SGCoreKismet/SGLibraryKismetLibrary.cpp b/Source/SenseGloveCoreKismet/Private/SGCoreKismet/SGLibraryKismetLibrary.cpp index 18317258..cba0f12c 100644 --- a/Source/SenseGloveCoreKismet/Private/SGCoreKismet/SGLibraryKismetLibrary.cpp +++ b/Source/SenseGloveCoreKismet/Private/SGCoreKismet/SGLibraryKismetLibrary.cpp @@ -47,6 +47,11 @@ FString USGLibraryKismetLibrary::GetBackendVersion() return FSGLibrary::GetBackendVersion(); } +ESGBackendType USGLibraryKismetLibrary::GetBackendType() +{ + return FSGLibrary::GetBackendType(); +} + FString USGLibraryKismetLibrary::GetSGConnectVersion() { return FSGLibrary::GetSGConnectVersion(); diff --git a/Source/SenseGloveCoreKismet/Public/SGCoreKismet/SGLibraryKismetLibrary.h b/Source/SenseGloveCoreKismet/Public/SGCoreKismet/SGLibraryKismetLibrary.h index de82491f..5c92c88c 100644 --- a/Source/SenseGloveCoreKismet/Public/SGCoreKismet/SGLibraryKismetLibrary.h +++ b/Source/SenseGloveCoreKismet/Public/SGCoreKismet/SGLibraryKismetLibrary.h @@ -63,6 +63,12 @@ public: UFUNCTION(BlueprintCallable, Category="SenseGlove | Core | Library") static FString GetBackendVersion(); + /** + * Check what back-end connections are used for this version of SGConnect. + */ + UFUNCTION(BlueprintCallable, Category="SenseGlove | Core | Library") + static ESGBackendType GetBackendType(); + /** * If possible, check what version of SGConnect is paired with this API. */ diff --git a/Source/SenseGloveTypes/Public/SGTypes/SGCoreTypes.h b/Source/SenseGloveTypes/Public/SGTypes/SGCoreTypes.h index d2f17e30..0f8f3a5f 100644 --- a/Source/SenseGloveTypes/Public/SGTypes/SGCoreTypes.h +++ b/Source/SenseGloveTypes/Public/SGTypes/SGCoreTypes.h @@ -48,6 +48,9 @@ enum class ESGBackendType : uint8 /* Back-end info comes from shared memory on the device. */ SharedMemory UMETA(DisplayName = "Shared Memory"), + + /* Back-end data comes from an Android library. */ + AndroidStrings, }; /* Connection type of this device, as detected by the SGConnect library. */