Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b6acf03c95
|
||
|
|
a0c4e96349
|
||
|
|
6251cb0d37
|
||
|
|
dfda4f28fb
|
||
|
|
5054063a8a
|
||
|
|
c6294a1f16
|
||
|
|
1cbe39fd5e
|
||
|
|
f0db0b0846
|
||
|
|
5e1cb6a637
|
||
|
|
eca69677b1
|
||
|
|
fbe415c7ae
|
||
|
|
0b052356ee
|
||
|
|
42316edb95
|
||
|
|
932bdb26d4
|
||
|
|
4fe5281cd8
|
||
|
|
dcbe1015f8
|
||
|
|
6ebee2aa2f
|
||
|
|
7c8f26e978
|
||
|
|
bf234d720b
|
||
|
|
702fdf19fa
|
||
|
|
0364f67ae2
|
||
|
|
0efd382edb
|
||
|
|
28b88a5a72
|
||
|
|
eab9892a5d
|
||
|
|
da3449b7df
|
||
|
|
25e0d49eea
|
||
|
|
01fe621704
|
||
|
|
ce325f1219
|
||
|
|
8ce4caadc9
|
||
|
|
2588eade1f
|
||
|
|
98921356cd
|
||
|
|
7a35364713
|
||
|
|
1cac3a70e3
|
||
|
|
083a1690e8
|
||
|
|
c2244c8ff8
|
||
|
|
8b7bcdd8b8
|
||
|
|
f0d67ce035
|
||
|
|
49bcfbc2d4
|
||
|
|
9ed0015db0
|
||
|
|
5951ac9c33
|
||
|
|
be3647e310
|
||
|
|
3e35246b39
|
||
|
|
8087719bbb
|
||
|
|
5ca1da7730
|
||
|
|
41196d69c1
|
||
|
|
ead76bb4f5
|
||
|
|
529e751e07
|
||
|
|
1b2300d18c
|
||
|
|
dbabec4583
|
||
|
|
e1fea5d60b
|
||
|
|
43bdec8601
|
||
|
|
a5a8e7149f
|
||
|
|
bb63748644
|
||
|
|
d4e92546e3
|
||
|
|
daa4031e6b
|
||
|
|
bc39905bc6
|
||
|
|
1fdb94d5c9
|
||
|
|
7c9e1b2462
|
||
|
|
ef6d5b6295
|
||
|
|
6794a36b0f
|
||
|
|
6c77fb0ca9
|
||
|
|
f5d9a02dab
|
||
|
|
75eaea13a4
|
||
|
|
b2f89c4694
|
||
|
|
b4e547f755
|
||
|
|
8125ad2fc6
|
+131
-1
@@ -5,6 +5,136 @@ All notable changes to this project will be documented in this file.
|
|||||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
|
## [1.9.3] - 2024-02-03
|
||||||
|
|
||||||
|
This is a hotfix release addressing a few critical issues that might result in crashes or malfunctions for users of the low-level SenseGlove API, backported from the next major release of the plugin as documented below.
|
||||||
|
|
||||||
|
# Fixed
|
||||||
|
|
||||||
|
- Fix a potential memory corruption inside one of the SGBasicHandModel constructors where the StartPositions parameter gets passed as the StartRotations parameter to lower levels of the API.
|
||||||
|
- Fix a potential memory corruption inside one of the SGSenseGloveInfo constructors where the StartPositions parameter gets passed as the Functions parameter to lower levels of the API.
|
||||||
|
- Fix a potential memory corruption where inside the SGHapticGloveCalibrationSequence::GetCurrentInstruction method, the return statement of the function is getting assigned to the const parameter NextStepKey, thus the return statement of the function will always be empty as well.
|
||||||
|
- Fix a potential memory corruption where inside one of the overloads of the SGSenseGloveImpl::GetGlovePose method, the out parameter of the method is getting passed as the SensorData parameter to the lower levels of the API.
|
||||||
|
- Fix multiple Equals methods for a few classes such as SGInterpolationSet, SGNovaGloveHandProfile, SGNovaGloveInfo, SGSenseGloveHandProfile, SenseGloveInfo, SenseGlovePose, where the Equal method compares the current instance against itself instead of the other instance passed to as the parameter to the method.
|
||||||
|
- Removed a redundant code statement inside the SGNovaGloveImpl::GetSubFirmwareVersion method.
|
||||||
|
- Some minor const correctness fixes.
|
||||||
|
- Some other minor code fixes and improvements.
|
||||||
|
- Fix the wrong version numbers inside the paltform support matrix and the main .uplugin file.
|
||||||
|
- Minor changelog fixes.
|
||||||
|
- Bumped the copyright years.
|
||||||
|
|
||||||
|
## [1.9.2] - 2023-11-03
|
||||||
|
|
||||||
|
# Added
|
||||||
|
|
||||||
|
- Added a list of planned features and their completion status to the main README file.
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- A bug where the released actor is going to be NULL whenever the OnActorReleased event fires.
|
||||||
|
|
||||||
|
## [1.9.1] - 2023-10-11
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Add the missing Unreal Engine C++ header to files that rely on the ENGINE\_\*\_VERSION macros in order to fix the Epic Store build failures on UE 5.3.
|
||||||
|
|
||||||
|
## [1.9.0] - 2023-10-10
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
- The BlueprintImplementableEvent UFUNCTION specifier for the OnGrabStateUpdated, OnTouchStateUpdated, OnActorGrabbed, OnActorReleased, OnActorBeginTouch, and OnActorEndTouch events have been changed to BlueprintNativeEvent in order to allow them to be implemented from the child C++ classes as well. This won't break any existing Blueprint code that relies on the previous BlueprintImplementableEvent signature.
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Add a missing release note entry for the v1.8.0 release to the changelog file.
|
||||||
|
|
||||||
|
## [1.8.0] - 2023-10-10
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- Introduced new SGPawn events: OnActorGrabbed, OnActorReleased, OnActorBeginTouch, and OnActorEndTouch.
|
||||||
|
- Exposed OnGrabStateUpdated, OnTouchStateUpdated, OnActorGrabbed, OnActorReleased, OnActorBeginTouch, and OnActorEndTouch events to Blueprint as BlueprintImplementableEvent.
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Fix a bug where the OnTouchStateUpdated event is mistakenly triggered instead of the OnGrabStateUpdated when the right thumb fingertip grab collider overlaps with a grabbable actor.
|
||||||
|
- Fix the DECLARE_EVENT macro signature for OnGrabStateUpdated and OnTouchStateUpdated events.
|
||||||
|
|
||||||
|
## [1.7.0] - 2023-09-14
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- Introduce SGGameInstance, a customized SenseGlove game instance for future use.
|
||||||
|
- Added the new SenseGloveBackend and SenseGloveBackendKismet modules.
|
||||||
|
- Added SG_CPP20 C++ macro for C++20 detection, which is now default from UE 5.3 onwards.
|
||||||
|
- Added SG_CAPTURE_THIS C++ macro as a workaround for error C4855: implicit capture of 'this' via '[=]' is deprecated in /std:c++20 in order to build the same lambda captures without extra #ifdefs on all supported engine versions.
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
- SenseGlove libraries have been updated to v2.12.0-19c9854.
|
||||||
|
- SGCoreImpl/SGPlatform has been moved to SGBuildHacks/SGPlatform.
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Proper initialization of the SenseGlove backend in order to fix a bug in certain situations where SGConnect::Init() gets called every frame.
|
||||||
|
- Some other minor fixes and improvements.
|
||||||
|
|
||||||
|
## [1.6.1] - 2023-08-14
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Fix Unreal Engine 5.0 build issues.
|
||||||
|
- Minor documentation fixes.
|
||||||
|
|
||||||
|
## [1.6.0] - 2023-08-14
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- Added support for the upcoming Unreal Engine 5.3.
|
||||||
|
- Now, the hand's velocity is applied to grabbed actors after being released from the hand.
|
||||||
|
- Introduce the real hands to the SenseGlove module (SGPawn) API.
|
||||||
|
- Added separation of the virtual and real hand rendering.
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Fix the wrong default debug virtual hand gizmo colors when initialized using the default constructor.
|
||||||
|
- Some minor performance fixes and improvements.
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
- SenseGlove libraries have been updated to v2.11.0-b775a05.
|
||||||
|
|
||||||
|
## [1.5.3] - 2023-07-19
|
||||||
|
|
||||||
|
This is a hotfix release mostly addressing Android Bluetooth performance issues.
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Minor changelog fixes.
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
- SenseGlove libraries have been updated to v2.10.1-3b0e7c9.
|
||||||
|
|
||||||
|
## [1.5.2] - 2023-07-19
|
||||||
|
|
||||||
|
This is a hotfix release mostly addressing Android-related issues.
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Fix a build issue with Android shipping builds due to sgconnect.jar not getting copied automatically in the AFSProject which is compiled for shipping builds when AndroidFileServer (AFS) is enabled.
|
||||||
|
- Minor changelog fixes and some source code formatting fixes.
|
||||||
|
|
||||||
|
## [1.5.1] - 2023-07-13
|
||||||
|
|
||||||
|
This is a hotfix release addressing a few critical issues introduced by the recent changes.
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Fix a wrist tracker bug where left and right hands' wrist trackers are mistakenly tracking the opposite hand's motion source.
|
||||||
|
- Fix a bug where the right hand is not able to do grab or release.
|
||||||
|
|
||||||
## [1.5.0] - 2023-06-16
|
## [1.5.0] - 2023-06-16
|
||||||
|
|
||||||
This release breaks ABI/API compatibility with the previous versions in some areas as documented below.
|
This release breaks ABI/API compatibility with the previous versions in some areas as documented below.
|
||||||
@@ -22,7 +152,7 @@ This release breaks ABI/API compatibility with the previous versions in some are
|
|||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
- Fully refactored the top-level configurations in the settings system into USTRUCTs.
|
- Fully refactored the top-level configurations in the settings system into USTRUCTs.
|
||||||
- SenseGlove libraries have been updated to v.2.10.0-12133ac.
|
- SenseGlove libraries have been updated to v2.10.0-12133ac.
|
||||||
|
|
||||||
### Removed
|
### Removed
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -5,7 +5,7 @@ The SenseGlove plug-in for Unreal Engine is licensed under the terms of the MIT
|
|||||||
```
|
```
|
||||||
MIT License
|
MIT License
|
||||||
|
|
||||||
Copyright (c) 2020 - 2023 SenseGlove
|
Copyright (c) 2020 - 2024 SenseGlove
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
@@ -14,9 +14,10 @@ This repository relies on Git LFS for storing binary blobs (e.g. third-party lib
|
|||||||
| **4.25** | ⚠️ v1.0.x | ⚠️ v1.0.x | ❌ | ⚠️ v1.0.x | ❌ | ❌ | ❌ | ⚠️ v1.0.4 |
|
| **4.25** | ⚠️ v1.0.x | ⚠️ v1.0.x | ❌ | ⚠️ v1.0.x | ❌ | ❌ | ❌ | ⚠️ v1.0.4 |
|
||||||
| **4.26** | ⚠️ v1.0.x | ⚠️ v1.0.x | ❌ | ⚠️ v1.0.x | ❌ | ❌ | ❌ | ⚠️ v1.0.4 |
|
| **4.26** | ⚠️ v1.0.x | ⚠️ v1.0.x | ❌ | ⚠️ v1.0.x | ❌ | ❌ | ❌ | ⚠️ v1.0.4 |
|
||||||
| **4.27** | ⚠️ v1.4.x | ⚠️ v1.4.x | ⚠️ v1.4.x | ⚠️ v1.4.x | ⚠️ v1.4.x | ⚠️ v1.4.x (r21e) | ⚠️ v1.3.1 | ⚠️ v1.4.3 |
|
| **4.27** | ⚠️ v1.4.x | ⚠️ v1.4.x | ⚠️ v1.4.x | ⚠️ v1.4.x | ⚠️ v1.4.x | ⚠️ v1.4.x (r21e) | ⚠️ v1.3.1 | ⚠️ v1.4.3 |
|
||||||
| **5.0** | ❌ | ✅ v1.5.x | ✅ v1.5.x | ✅ v1.5.x | ✅ v1.5.x | ✅ v1.5.x (r21e) | ✅ v1.5.0 | ✅ v1.5.0 |
|
| **5.0** | ❌ | ⚠️ v1.6.x | ⚠️ v1.6.x | ⚠️ v1.6.x | ⚠️ v1.6.x | ⚠️ v1.6.x (r21e) | ⚠️ v1.6.1 | ⚠️ v1.6.1 |
|
||||||
| **5.1** | ❌ | ✅ v1.5.x | ✅ v1.5.x | ✅ v1.5.x | ✅ v1.5.x | ✅ v1.5.x (r25b) | ✅ v1.5.0 | ✅ v1.5.0 |
|
| **5.1** | ❌ | ✅ v1.9.x | ✅ v1.9.x | ✅ v1.9.x | ✅ v1.9.x | ✅ v1.9.x (r25b) | ✅ v1.9.3 | ✅ v1.9.3 |
|
||||||
| **5.2** | ❌ | ✅ v1.5.x | ✅ v1.5.x | ✅ v1.5.x | ✅ v1.5.x | ✅ v1.5.x (r25b) | ✅ v1.5.0 | ✅ v1.5.0 |
|
| **5.2** | ❌ | ✅ v1.9.x | ✅ v1.9.x | ✅ v1.9.x | ✅ v1.9.x | ✅ v1.9.x (r25b) | ✅ v1.9.3 | ✅ v1.9.3 |
|
||||||
|
| **5.3** | ❌ | ✅ v1.9.x | ✅ v1.9.x | ✅ v1.9.x | ✅ v1.9.x | ✅ v1.9.x (r25b) | ✅ v1.9.3 | ✅ v1.9.3 |
|
||||||
|
|
||||||
* <code>✅</code> Supported
|
* <code>✅</code> Supported
|
||||||
* <code>⚠️</code> Not supported by the latest release and might be lacking features
|
* <code>⚠️</code> Not supported by the latest release and might be lacking features
|
||||||
@@ -52,6 +53,52 @@ The following modules are intended to be used by the C++ users of this plugin:
|
|||||||
|
|
||||||
Please note that modules postfixed with **Impl** are intended for interal use and are discouraged to be used by the users of the API. The modules postfixed with **Kismet** are exposing the functionality of the equivalent modules to Blueprints. For other modules descriptions, please see [the Directory Structure section](#directory-structure).
|
Please note that modules postfixed with **Impl** are intended for interal use and are discouraged to be used by the users of the API. The modules postfixed with **Kismet** are exposing the functionality of the equivalent modules to Blueprints. For other modules descriptions, please see [the Directory Structure section](#directory-structure).
|
||||||
|
|
||||||
|
## Planned Features Completion Status
|
||||||
|
|
||||||
|
### Implemented as of v1.9.3
|
||||||
|
|
||||||
|
- [X] Full SenseGlove low-level core API access through Unreal C++.
|
||||||
|
- [X] Full SenseGlove low-level core API access through Blueprint.
|
||||||
|
- [X] DK 1 Support.
|
||||||
|
- [X] Nova 1 Support.
|
||||||
|
- [X] Support for Microsoft Windows as a development platform.
|
||||||
|
- [X] Support for GNU/Linux as a development platform.
|
||||||
|
- [X] Support for Microsoft Windows as a deployment platform.
|
||||||
|
- [X] Support for GNU/Linux x64 as a deployment platform.
|
||||||
|
- [X] Support for GNU/Linux AArch64 as a deployment platform.
|
||||||
|
- [X] Support for Android as a deployment platform.
|
||||||
|
- [X] Support for Oculus Quest 2 and Oculus Quest Pro.
|
||||||
|
- [X] Support for HTC VIVE Pro and HTC VIVE Focus 3.
|
||||||
|
- [X] Support for HTC VIVE Trackers and HTC VIVE Wrist Trackers.
|
||||||
|
- [X] On-device calibration for Android without the need for SenseCom.
|
||||||
|
- [X] Haptic feedback including force feedback, buzz, and thumper commands.
|
||||||
|
- [X] A customizable Grab component that could be added to any actor.
|
||||||
|
- [X] A customizable Touch component that could be added to any actor.
|
||||||
|
- [X] Ability to grab, release, and throw objects around.
|
||||||
|
- [X] Separation of the real and virtual hand rendering.
|
||||||
|
- [X] An out-of-the-box customizable SGPawn with the ability to be extended in C++ and Blueprint.
|
||||||
|
- [X] Easy wrist/hand tracking debugging using the SenseGlove Debug module.
|
||||||
|
- [X] A generic Settings module with the ability to override settings.
|
||||||
|
- [X] C++/Blueprint interaction events such as OnGrabStateUpdated, OnTouchStateUpdated, OnActorGrabbed, OnActorReleased, OnActorBeginTouch, and OnActorEndTouch.
|
||||||
|
|
||||||
|
### Upcoming features planned for the v2.0.0 release
|
||||||
|
|
||||||
|
- [ ] A default hand mesh rigged with the standard SenseGlove default hand pose.
|
||||||
|
- [ ] Hand tracking compatible with OpenXR (or other generic hand tracking format).
|
||||||
|
- [ ] Nova 2 Support.
|
||||||
|
|
||||||
|
### Planned features long-term
|
||||||
|
|
||||||
|
- [ ] Get tracking input from sources other than a SenseGlove device.
|
||||||
|
- [ ] Be able to assign behaviors to different objects (meshes) in the scene (e.g. Slider, Hinge, basic Grabables, etc).
|
||||||
|
- [ ] Make it so developers can define or extend their own behavior(s) to an object through Code / Blueprints (e.g. I want a car door that is like a slider, but follows a path rather than a straight line).
|
||||||
|
- [ ] Make the hand(s) able to push around physics-driven objects (for as much as their behaviors allow) (in backlog).
|
||||||
|
- [ ] Be able to grab objects with up to 2 hands (and move them around with both hands at the same time in a way that seems realistic).
|
||||||
|
- [ ] Ensure that our virtual hands (and the objects they hold) do not phase through other physics objects (e.g. walls and tables).
|
||||||
|
- [ ] Allow other scripts to force a grab and/or release to occur (for example, when you place it apart at the designated location, it gets removed from your hand and snaps into place).
|
||||||
|
- [ ] Have some form of weight simulation by making certain objects harder to push, lowering manipulation speed, or making objects only moveable with two hands.
|
||||||
|
- [ ] (Optional) Make it so the fingers of your virtual hands do not clip inside the meshes you are holding (certain people see this as an indicator of how fast the Force-Feedback activates - but it's basically just rendering).
|
||||||
|
|
||||||
## Directory Structure
|
## Directory Structure
|
||||||
|
|
||||||
```
|
```
|
||||||
@@ -173,20 +220,6 @@ Please note that modules postfixed with **Impl** are intended for interal use an
|
|||||||
│
|
│
|
||||||
├── linux
|
├── linux
|
||||||
│ │
|
│ │
|
||||||
│ ├── v19 (UE 4.27 Linux dependencies)
|
|
||||||
│ │ │
|
|
||||||
│ │ ├── aarch64 (dependencies targeting AArch64 Linux architecture)
|
|
||||||
│ │ │ │
|
|
||||||
│ │ │ ├── debug
|
|
||||||
│ │ │ │
|
|
||||||
│ │ │ └── release
|
|
||||||
│ │ │
|
|
||||||
│ │ └── x86-64 (dependencies targeting x86-64 Linux architecture)
|
|
||||||
│ │ │
|
|
||||||
│ │ ├── debug
|
|
||||||
│ │ │
|
|
||||||
│ │ └── release
|
|
||||||
│ │
|
|
||||||
│ ├── v20 (UE 5.0 and 5.1 Linux dependencies)
|
│ ├── v20 (UE 5.0 and 5.1 Linux dependencies)
|
||||||
│ │ │
|
│ │ │
|
||||||
│ │ ├── aarch64 (dependencies targeting AArch64 Linux architecture)
|
│ │ ├── aarch64 (dependencies targeting AArch64 Linux architecture)
|
||||||
@@ -201,7 +234,21 @@ Please note that modules postfixed with **Impl** are intended for interal use an
|
|||||||
│ │ │
|
│ │ │
|
||||||
│ │ └── release
|
│ │ └── release
|
||||||
│ │
|
│ │
|
||||||
│ └── v21 (UE 5.2 Linux dependencies)
|
│ ├── v21 (UE 5.2 Linux dependencies)
|
||||||
|
│ │ │
|
||||||
|
│ │ ├── aarch64 (dependencies targeting AArch64 Linux architecture)
|
||||||
|
│ │ │ │
|
||||||
|
│ │ │ ├── debug
|
||||||
|
│ │ │ │
|
||||||
|
│ │ │ └── release
|
||||||
|
│ │ │
|
||||||
|
│ │ └── x86-64 (dependencies targeting x86-64 Linux architecture)
|
||||||
|
│ │ │
|
||||||
|
│ │ ├── debug
|
||||||
|
│ │ │
|
||||||
|
│ │ └── release
|
||||||
|
│ │
|
||||||
|
│ └── v22 (UE 5.3 Linux dependencies)
|
||||||
│ │
|
│ │
|
||||||
│ ├── aarch64 (dependencies targeting AArch64 Linux architecture)
|
│ ├── aarch64 (dependencies targeting AArch64 Linux architecture)
|
||||||
│ │ │
|
│ │ │
|
||||||
@@ -216,12 +263,6 @@ Please note that modules postfixed with **Impl** are intended for interal use an
|
|||||||
│ └── release
|
│ └── release
|
||||||
│
|
│
|
||||||
└── win64
|
└── win64
|
||||||
│
|
|
||||||
├── msvc141 (Microsoft Visual Studio 2017 dependencies)
|
|
||||||
│ │
|
|
||||||
│ ├── debug
|
|
||||||
│ │
|
|
||||||
│ └── release
|
|
||||||
│
|
│
|
||||||
├── msvc142 (Microsoft Visual Studio 2019 dependencies)
|
├── msvc142 (Microsoft Visual Studio 2019 dependencies)
|
||||||
│ │
|
│ │
|
||||||
|
|||||||
+23
-1
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"FileVersion": 3,
|
"FileVersion": 3,
|
||||||
"Version": 1,
|
"Version": 1,
|
||||||
"VersionName": "1.5.0",
|
"VersionName": "1.9.3",
|
||||||
"FriendlyName": "SenseGlove",
|
"FriendlyName": "SenseGlove",
|
||||||
"Description": "Integrating the SenseGlove haptic controller into Unreal Engine",
|
"Description": "Integrating the SenseGlove haptic controller into Unreal Engine",
|
||||||
"Category": "Virtual Reality",
|
"Category": "Virtual Reality",
|
||||||
@@ -53,6 +53,28 @@
|
|||||||
"Win64"
|
"Win64"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"Name": "SenseGloveBackend",
|
||||||
|
"Type": "Runtime",
|
||||||
|
"LoadingPhase": "PreDefault",
|
||||||
|
"WhitelistPlatforms": [
|
||||||
|
"Android",
|
||||||
|
"Linux",
|
||||||
|
"LinuxArm64",
|
||||||
|
"Win64"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "SenseGloveBackendKismet",
|
||||||
|
"Type": "Runtime",
|
||||||
|
"LoadingPhase": "PreDefault",
|
||||||
|
"WhitelistPlatforms": [
|
||||||
|
"Android",
|
||||||
|
"Linux",
|
||||||
|
"LinuxArm64",
|
||||||
|
"Win64"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"Name": "SenseGloveConnect",
|
"Name": "SenseGloveConnect",
|
||||||
"Type": "Runtime",
|
"Type": "Runtime",
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* (The MIT License)
|
* (The MIT License)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2020 - 2023 SenseGlove
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* (The MIT License)
|
* (The MIT License)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2020 - 2023 SenseGlove
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* (The MIT License)
|
* (The MIT License)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2020 - 2023 SenseGlove
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* (The MIT License)
|
* (The MIT License)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2020 - 2023 SenseGlove
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
@@ -44,9 +44,9 @@
|
|||||||
#include "Engine/SkeletalMesh.h"
|
#include "Engine/SkeletalMesh.h"
|
||||||
#include "Math/Rotator.h"
|
#include "Math/Rotator.h"
|
||||||
#include "Runtime/Launch/Resources/Version.h"
|
#include "Runtime/Launch/Resources/Version.h"
|
||||||
#include "SGLog/SGLog.h"
|
|
||||||
|
|
||||||
#include "SenseGlove/Components/SGVirtualHandComponent.h"
|
#include "SenseGlove/Components/SGVirtualHandComponent.h"
|
||||||
|
#include "SGLog/SGLog.h"
|
||||||
|
|
||||||
FSGVirtualHandAnimInstanceProxy::FSGVirtualHandAnimInstanceProxy()
|
FSGVirtualHandAnimInstanceProxy::FSGVirtualHandAnimInstanceProxy()
|
||||||
: FAnimInstanceProxy()
|
: FAnimInstanceProxy()
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* (The MIT License)
|
* (The MIT License)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2020 - 2023 SenseGlove
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* (The MIT License)
|
* (The MIT License)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2020 - 2023 SenseGlove
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* (The MIT License)
|
* (The MIT License)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2020 - 2023 SenseGlove
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
@@ -45,11 +45,9 @@
|
|||||||
|
|
||||||
#include "SenseGlove/Animation/SGVirtualHandAnimInstance.h"
|
#include "SenseGlove/Animation/SGVirtualHandAnimInstance.h"
|
||||||
#include "SenseGlove/Components/SGWristTrackerComponent.h"
|
#include "SenseGlove/Components/SGWristTrackerComponent.h"
|
||||||
#include "SGConnect/SGConnect.h"
|
#include "SGBackend/SGBackend.h"
|
||||||
#include "SGCore/SGDeviceList.h"
|
|
||||||
#include "SGCore/SGHandPose.h"
|
#include "SGCore/SGHandPose.h"
|
||||||
#include "SGCore/SGHapticGlove.h"
|
#include "SGCore/SGHapticGlove.h"
|
||||||
#include "SGCore/SGHapticGloveHandProfiles.h"
|
|
||||||
#include "SGDebug/SGDebugVirtualHand.h"
|
#include "SGDebug/SGDebugVirtualHand.h"
|
||||||
#include "SGLog/SGLog.h"
|
#include "SGLog/SGLog.h"
|
||||||
|
|
||||||
@@ -123,11 +121,12 @@ struct USGVirtualHandComponent::FImpl
|
|||||||
USkeleton* GetSkeleton() const;
|
USkeleton* GetSkeleton() const;
|
||||||
const FReferenceSkeleton& GetRefSkeleton() const;
|
const FReferenceSkeleton& GetRefSkeleton() const;
|
||||||
|
|
||||||
bool InitializeBackend() const;
|
|
||||||
bool UninitializeBackend() const;
|
|
||||||
bool CheckGlove() const;
|
bool CheckGlove() const;
|
||||||
|
|
||||||
void SetVisibility(bool bInVisible) const;
|
FORCEINLINE void SetVisibility(const bool bInVisible) const
|
||||||
|
{
|
||||||
|
Owner->SetVisibility(bInVisible, true);
|
||||||
|
}
|
||||||
|
|
||||||
void DrawDebugVirtualHand() const;
|
void DrawDebugVirtualHand() const;
|
||||||
};
|
};
|
||||||
@@ -244,7 +243,6 @@ USGVirtualHandComponent::USGVirtualHandComponent(const FObjectInitializer& Objec
|
|||||||
|
|
||||||
Super::SetSkeletalMesh(nullptr, true);
|
Super::SetSkeletalMesh(nullptr, true);
|
||||||
|
|
||||||
bBackendInitialized = false;
|
|
||||||
Glove = nullptr;
|
Glove = nullptr;
|
||||||
WristTracker = nullptr;
|
WristTracker = nullptr;
|
||||||
}
|
}
|
||||||
@@ -306,27 +304,24 @@ void USGVirtualHandComponent::InitializeComponent()
|
|||||||
Pimpl->SetDefaultMesh();
|
Pimpl->SetDefaultMesh();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Pimpl->InitializeBackend())
|
(void) Pimpl->CheckGlove();
|
||||||
{
|
|
||||||
(void) Pimpl->CheckGlove();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void USGVirtualHandComponent::UninitializeComponent()
|
void USGVirtualHandComponent::UninitializeComponent()
|
||||||
{
|
{
|
||||||
Super::UninitializeComponent();
|
Super::UninitializeComponent();
|
||||||
|
|
||||||
(void) Pimpl->UninitializeBackend();
|
if (IsValid(Glove) && AutoStopsAllHapticsOnEndPlay())
|
||||||
|
{
|
||||||
|
Glove->StopHaptics();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void USGVirtualHandComponent::BeginPlay()
|
void USGVirtualHandComponent::BeginPlay()
|
||||||
{
|
{
|
||||||
Super::BeginPlay();
|
Super::BeginPlay();
|
||||||
|
|
||||||
if (Pimpl->InitializeBackend())
|
(void) Pimpl->CheckGlove();
|
||||||
{
|
|
||||||
(void) Pimpl->CheckGlove();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void USGVirtualHandComponent::EndPlay(const EEndPlayReason::Type EndPlayReason)
|
void USGVirtualHandComponent::EndPlay(const EEndPlayReason::Type EndPlayReason)
|
||||||
@@ -337,8 +332,6 @@ void USGVirtualHandComponent::EndPlay(const EEndPlayReason::Type EndPlayReason)
|
|||||||
{
|
{
|
||||||
Glove->StopHaptics();
|
Glove->StopHaptics();
|
||||||
}
|
}
|
||||||
|
|
||||||
(void) Pimpl->UninitializeBackend();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void USGVirtualHandComponent::TickComponent(
|
void USGVirtualHandComponent::TickComponent(
|
||||||
@@ -615,101 +608,11 @@ const FReferenceSkeleton& USGVirtualHandComponent::FImpl::GetRefSkeleton() const
|
|||||||
return Mesh->GetRefSkeleton();
|
return Mesh->GetRefSkeleton();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool USGVirtualHandComponent::FImpl::InitializeBackend() const
|
|
||||||
{
|
|
||||||
if (!Owner->bBackendInitialized)
|
|
||||||
{
|
|
||||||
#if PLATFORM_ANDROID
|
|
||||||
const int32_t Result = FSGConnect::Init();
|
|
||||||
switch (Result)
|
|
||||||
{
|
|
||||||
case -3:
|
|
||||||
SGLOG_ERROR("An Unexpected error occurred. Please try again.");
|
|
||||||
return false;
|
|
||||||
case -2:
|
|
||||||
SGLOG_ERROR("Device Scanning is already running within a different program.");
|
|
||||||
return false;
|
|
||||||
case -1:
|
|
||||||
SGLOG_ERROR("Device Scanning already being initialized (function called twice in short succession).");
|
|
||||||
return false;
|
|
||||||
case 0:
|
|
||||||
// Do not pollute the logs!
|
|
||||||
//SGLOG_ERROR("Device Scanning is already running within this program.");
|
|
||||||
// We must return here in case there are two virtual hand components are present in the scene.
|
|
||||||
return true;
|
|
||||||
case 1:
|
|
||||||
SGLOG("Successfully started up DeviceScanning from the current program.");
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
ensureAlwaysMsgf(false, TEXT("Unhandled Init return status code!"));
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
#endif /* PLATFORM_ANDROID */
|
|
||||||
|
|
||||||
// Ensure that the device list is empty before doing anything.
|
|
||||||
FSGDeviceList::Dispose();
|
|
||||||
FSGDeviceList::Reinitialize();
|
|
||||||
|
|
||||||
// Load the latest hand profiles.
|
|
||||||
FSGHapticGloveHandProfiles::TryLoadingFromDisk();
|
|
||||||
|
|
||||||
Owner->bBackendInitialized = true;
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool USGVirtualHandComponent::FImpl::UninitializeBackend() const
|
|
||||||
{
|
|
||||||
// NOTE
|
|
||||||
// In Editor builds we should be avoiding dispose, since stopping the game in PIE mode, causes the virtual-hand
|
|
||||||
// to disappear in the editor as the plugin won't be able to retrieve the glove status anymore.
|
|
||||||
#if ! WITH_EDITOR
|
|
||||||
if (Owner->bBackendInitialized)
|
|
||||||
{
|
|
||||||
FSGDeviceList::Dispose();
|
|
||||||
|
|
||||||
#if PLATFORM_ANDROID
|
|
||||||
const int32_t Result = FSGConnect::Dispose();
|
|
||||||
switch (Result)
|
|
||||||
{
|
|
||||||
case -3:
|
|
||||||
SGLOG_ERROR("An Unexpected error occurred. Please try again.");
|
|
||||||
return false;
|
|
||||||
case -2:
|
|
||||||
SGLOG_ERROR("Not allowed to dispose of Device Scanning because this is not the program which started it.");
|
|
||||||
return false;
|
|
||||||
case -1:
|
|
||||||
SGLOG_ERROR("Device Scanning is currently being disposed off. This takes a second or two. (function called twice in short succession).");
|
|
||||||
return false;
|
|
||||||
case 0:
|
|
||||||
SGLOG_ERROR("There is no deviceScanner running from any program, so disposing is skipped.");
|
|
||||||
return false;
|
|
||||||
case 1:
|
|
||||||
SGLOG("Successfully disposed of DeviceScanner resources.");
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
ensureAlwaysMsgf(false, TEXT("Unhandled Dispose return status code!"));
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
#endif /* PLATFORM_ANDROID */
|
|
||||||
|
|
||||||
Owner->bBackendInitialized = false;
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
#endif /* ! WITH_EDITOR */
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool USGVirtualHandComponent::FImpl::CheckGlove() const
|
bool USGVirtualHandComponent::FImpl::CheckGlove() const
|
||||||
{
|
{
|
||||||
if (!Owner->bBackendInitialized)
|
if (!USGBackend::GetInstance()->IsBackendInitialized())
|
||||||
{
|
{
|
||||||
const bool bSucceeded = InitializeBackend();
|
const bool bSucceeded = USGBackend::GetInstance()->InitializeBackend();
|
||||||
if (!bSucceeded)
|
if (!bSucceeded)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
@@ -758,11 +661,6 @@ bool USGVirtualHandComponent::FImpl::CheckGlove() const
|
|||||||
return bFoundGlove;
|
return bFoundGlove;
|
||||||
}
|
}
|
||||||
|
|
||||||
void USGVirtualHandComponent::FImpl::SetVisibility(const bool bInVisible) const
|
|
||||||
{
|
|
||||||
Owner->SetVisibility(bInVisible, true);
|
|
||||||
}
|
|
||||||
|
|
||||||
void USGVirtualHandComponent::FImpl::DrawDebugVirtualHand() const
|
void USGVirtualHandComponent::FImpl::DrawDebugVirtualHand() const
|
||||||
{
|
{
|
||||||
const UWorld* World{Owner->GetWorld()};
|
const UWorld* World{Owner->GetWorld()};
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* (The MIT License)
|
* (The MIT License)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2020 - 2023 SenseGlove
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
@@ -40,10 +40,8 @@
|
|||||||
#include "Engine/SkeletalMesh.h"
|
#include "Engine/SkeletalMesh.h"
|
||||||
#include "UObject/ConstructorHelpers.h"
|
#include "UObject/ConstructorHelpers.h"
|
||||||
|
|
||||||
#include "SGConnect/SGConnect.h"
|
#include "SGBackend/SGBackend.h"
|
||||||
#include "SGCore/SGDeviceList.h"
|
|
||||||
#include "SGCore/SGHapticGlove.h"
|
#include "SGCore/SGHapticGlove.h"
|
||||||
#include "SGCore/SGHapticGloveHandProfiles.h"
|
|
||||||
#include "SGDebug/SGDebugGizmo.h"
|
#include "SGDebug/SGDebugGizmo.h"
|
||||||
#include "SGLog/SGLog.h"
|
#include "SGLog/SGLog.h"
|
||||||
#include "SGSettings/SGSettings.h"
|
#include "SGSettings/SGSettings.h"
|
||||||
@@ -80,8 +78,6 @@ struct USGWristTrackerComponent::FImpl
|
|||||||
|
|
||||||
bool IsEditor() const;
|
bool IsEditor() const;
|
||||||
|
|
||||||
bool InitializeBackend() const;
|
|
||||||
bool UninitializeBackend() const;
|
|
||||||
bool CheckGlove() const;
|
bool CheckGlove() const;
|
||||||
|
|
||||||
void UpdateMotionSource() const;
|
void UpdateMotionSource() const;
|
||||||
@@ -128,7 +124,6 @@ USGWristTrackerComponent::USGWristTrackerComponent(const FObjectInitializer& Obj
|
|||||||
|
|
||||||
bRight = true;
|
bRight = true;
|
||||||
|
|
||||||
bBackendInitialized = false;
|
|
||||||
Glove = nullptr;
|
Glove = nullptr;
|
||||||
WristLocation = FVector::ZeroVector;
|
WristLocation = FVector::ZeroVector;
|
||||||
WristRotation = FRotator::ZeroRotator;
|
WristRotation = FRotator::ZeroRotator;
|
||||||
@@ -184,40 +179,20 @@ void USGWristTrackerComponent::InitializeComponent()
|
|||||||
{
|
{
|
||||||
Super::InitializeComponent();
|
Super::InitializeComponent();
|
||||||
|
|
||||||
if (Pimpl->InitializeBackend())
|
(void) Pimpl->CheckGlove();
|
||||||
{
|
|
||||||
(void) Pimpl->CheckGlove();
|
|
||||||
}
|
|
||||||
|
|
||||||
Pimpl->UpdateMotionSource();
|
Pimpl->UpdateMotionSource();
|
||||||
}
|
}
|
||||||
|
|
||||||
void USGWristTrackerComponent::UninitializeComponent()
|
|
||||||
{
|
|
||||||
Super::UninitializeComponent();
|
|
||||||
|
|
||||||
(void) Pimpl->UninitializeBackend();
|
|
||||||
}
|
|
||||||
|
|
||||||
void USGWristTrackerComponent::BeginPlay()
|
void USGWristTrackerComponent::BeginPlay()
|
||||||
{
|
{
|
||||||
Super::BeginPlay();
|
Super::BeginPlay();
|
||||||
|
|
||||||
if (Pimpl->InitializeBackend())
|
(void) Pimpl->CheckGlove();
|
||||||
{
|
|
||||||
(void) Pimpl->CheckGlove();
|
|
||||||
}
|
|
||||||
|
|
||||||
Pimpl->UpdateMotionSource();
|
Pimpl->UpdateMotionSource();
|
||||||
}
|
}
|
||||||
|
|
||||||
void USGWristTrackerComponent::EndPlay(const EEndPlayReason::Type EndPlayReason)
|
|
||||||
{
|
|
||||||
Super::EndPlay(EndPlayReason);
|
|
||||||
|
|
||||||
(void) Pimpl->UninitializeBackend();
|
|
||||||
}
|
|
||||||
|
|
||||||
void USGWristTrackerComponent::TickComponent(
|
void USGWristTrackerComponent::TickComponent(
|
||||||
const float DeltaTime, const ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction)
|
const float DeltaTime, const ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction)
|
||||||
{
|
{
|
||||||
@@ -264,101 +239,11 @@ bool USGWristTrackerComponent::FImpl::IsEditor() const
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool USGWristTrackerComponent::FImpl::InitializeBackend() const
|
|
||||||
{
|
|
||||||
if (!Owner->bBackendInitialized)
|
|
||||||
{
|
|
||||||
#if PLATFORM_ANDROID
|
|
||||||
const int32_t Result = FSGConnect::Init();
|
|
||||||
switch (Result)
|
|
||||||
{
|
|
||||||
case -3:
|
|
||||||
SGLOG_ERROR("An Unexpected error occurred. Please try again.");
|
|
||||||
return false;
|
|
||||||
case -2:
|
|
||||||
SGLOG_ERROR("Device Scanning is already running within a different program.");
|
|
||||||
return false;
|
|
||||||
case -1:
|
|
||||||
SGLOG_ERROR("Device Scanning already being initialized (function called twice in short succession).");
|
|
||||||
return false;
|
|
||||||
case 0:
|
|
||||||
// Do not pollute the logs!
|
|
||||||
//SGLOG_ERROR("Device Scanning is already running within this program.");
|
|
||||||
// We must return here in case two virtual hand components are present in the scene.
|
|
||||||
return true;
|
|
||||||
case 1:
|
|
||||||
SGLOG("Successfully started up DeviceScanning from the current program.");
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
ensureAlwaysMsgf(false, TEXT("Unhandled Init return status code!"));
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
#endif /* PLATFORM_ANDROID */
|
|
||||||
|
|
||||||
// Ensure that the device list is empty before doing anything.
|
|
||||||
FSGDeviceList::Dispose();
|
|
||||||
FSGDeviceList::Reinitialize();
|
|
||||||
|
|
||||||
// Load the latest hand profiles.
|
|
||||||
FSGHapticGloveHandProfiles::TryLoadingFromDisk();
|
|
||||||
|
|
||||||
Owner->bBackendInitialized = true;
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool USGWristTrackerComponent::FImpl::UninitializeBackend() const
|
|
||||||
{
|
|
||||||
// NOTE
|
|
||||||
// In Editor builds we should be avoiding dispose, since stopping the game in PIE mode, causes the virtual-hand
|
|
||||||
// to disappear in the editor as the plugin won't be able to retrieve the glove status anymore.
|
|
||||||
#if ! WITH_EDITOR
|
|
||||||
if (Owner->bBackendInitialized)
|
|
||||||
{
|
|
||||||
FSGDeviceList::Dispose();
|
|
||||||
|
|
||||||
#if PLATFORM_ANDROID
|
|
||||||
const int32_t Result = FSGConnect::Dispose();
|
|
||||||
switch (Result)
|
|
||||||
{
|
|
||||||
case -3:
|
|
||||||
SGLOG_ERROR("An Unexpected error occurred. Please try again.");
|
|
||||||
return false;
|
|
||||||
case -2:
|
|
||||||
SGLOG_ERROR("Not allowed to dispose of Device Scanning because this is not the program which started it.");
|
|
||||||
return false;
|
|
||||||
case -1:
|
|
||||||
SGLOG_ERROR("Device Scanning is currently being disposed off. This takes a second or two. (function called twice in short succession).");
|
|
||||||
return false;
|
|
||||||
case 0:
|
|
||||||
SGLOG_ERROR("There is no deviceScanner running from any program, so disposing is skipped.");
|
|
||||||
return false;
|
|
||||||
case 1:
|
|
||||||
SGLOG("Successfully disposed of DeviceScanner resources.");
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
ensureAlwaysMsgf(false, TEXT("Unhandled Dispose return status code!"));
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
#endif /* PLATFORM_ANDROID */
|
|
||||||
|
|
||||||
Owner->bBackendInitialized = false;
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
#endif /* ! WITH_EDITOR */
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool USGWristTrackerComponent::FImpl::CheckGlove() const
|
bool USGWristTrackerComponent::FImpl::CheckGlove() const
|
||||||
{
|
{
|
||||||
if (!Owner->bBackendInitialized)
|
if (!USGBackend::GetInstance()->IsBackendInitialized())
|
||||||
{
|
{
|
||||||
const bool bSucceeded = InitializeBackend();
|
const bool bSucceeded = USGBackend::GetInstance()->InitializeBackend();
|
||||||
if (!bSucceeded)
|
if (!bSucceeded)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
@@ -387,8 +272,8 @@ void USGWristTrackerComponent::FImpl::UpdateMotionSource() const
|
|||||||
if (GEngine)
|
if (GEngine)
|
||||||
{
|
{
|
||||||
Owner->SetTrackingSource(Owner->IsRight()
|
Owner->SetTrackingSource(Owner->IsRight()
|
||||||
? Owner->GetWristTrackingSettings().LeftHandMotionSource
|
? Owner->GetWristTrackingSettings().RightHandMotionSource
|
||||||
: Owner->GetWristTrackingSettings().RightHandMotionSource);
|
: Owner->GetWristTrackingSettings().LeftHandMotionSource);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,57 @@
|
|||||||
|
/**
|
||||||
|
* @file
|
||||||
|
*
|
||||||
|
* @author Mamadou Babaei <mamadou@senseglove.com>
|
||||||
|
*
|
||||||
|
* @section LICENSE
|
||||||
|
*
|
||||||
|
* (The MIT License)
|
||||||
|
*
|
||||||
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
|
*
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
* in the Software without restriction, including without limitation the rights
|
||||||
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
* copies of the Software, and to permit persons to whom the Software is
|
||||||
|
* furnished to do so, subject to the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included in all
|
||||||
|
* copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
* SOFTWARE.
|
||||||
|
*
|
||||||
|
* @section DESCRIPTION
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
#include "SenseGlove/Engine/SGGameInstance.h"
|
||||||
|
|
||||||
|
#include "SGLog/SGLog.h"
|
||||||
|
|
||||||
|
USGGameInstance::USGGameInstance(const FObjectInitializer& ObjectInitializer)
|
||||||
|
: Super(ObjectInitializer)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void USGGameInstance::Init()
|
||||||
|
{
|
||||||
|
Super::Init();
|
||||||
|
|
||||||
|
SGLOG("Initializing the SenseGlove GameInstance...")
|
||||||
|
}
|
||||||
|
|
||||||
|
void USGGameInstance::Shutdown()
|
||||||
|
{
|
||||||
|
Super::Shutdown();
|
||||||
|
|
||||||
|
SGLOG("Shutting down the SenseGlove GameInstance...")
|
||||||
|
}
|
||||||
@@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* (The MIT License)
|
* (The MIT License)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2020 - 2023 SenseGlove
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
@@ -33,7 +33,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include "SenseGlove/GameFramework//SGGameModeBase.h"
|
#include "SenseGlove/GameFramework/SGGameModeBase.h"
|
||||||
|
|
||||||
#include "SenseGlove/GameFramework/SGPawn.h"
|
#include "SenseGlove/GameFramework/SGPawn.h"
|
||||||
#include "SenseGlove/GameFramework/SGPlayerController.h"
|
#include "SenseGlove/GameFramework/SGPlayerController.h"
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* (The MIT License)
|
* (The MIT License)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2020 - 2023 SenseGlove
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
@@ -35,6 +35,8 @@
|
|||||||
|
|
||||||
#include "SenseGlove/GameFramework/SGPlayerController.h"
|
#include "SenseGlove/GameFramework/SGPlayerController.h"
|
||||||
|
|
||||||
|
#include "Runtime/Launch/Resources/Version.h"
|
||||||
|
|
||||||
#if ENGINE_MAJOR_VERSION > 5 || ( ENGINE_MAJOR_VERSION == 5 && ENGINE_MINOR_VERSION >= 2 )
|
#if ENGINE_MAJOR_VERSION > 5 || ( ENGINE_MAJOR_VERSION == 5 && ENGINE_MINOR_VERSION >= 2 )
|
||||||
#include "Engine/TimerHandle.h"
|
#include "Engine/TimerHandle.h"
|
||||||
#else /* ENGINE_MAJOR_VERSION > 5 || ( ENGINE_MAJOR_VERSION == 5 && ENGINE_MINOR_VERSION >= 2 ) */
|
#else /* ENGINE_MAJOR_VERSION > 5 || ( ENGINE_MAJOR_VERSION == 5 && ENGINE_MINOR_VERSION >= 2 ) */
|
||||||
@@ -48,6 +50,7 @@
|
|||||||
#include "SenseGlove/GameFramework/SGPawn.h"
|
#include "SenseGlove/GameFramework/SGPawn.h"
|
||||||
#include "SenseGlove/Haptics/SGGrabState.h"
|
#include "SenseGlove/Haptics/SGGrabState.h"
|
||||||
#include "SenseGlove/Haptics/SGTouchState.h"
|
#include "SenseGlove/Haptics/SGTouchState.h"
|
||||||
|
#include "SGBuildHacks/SGPlatform.h"
|
||||||
#include "SGCore/SGBuzzCommand.h"
|
#include "SGCore/SGBuzzCommand.h"
|
||||||
#include "SGCore/SGForceFeedbackCommand.h"
|
#include "SGCore/SGForceFeedbackCommand.h"
|
||||||
#include "SGCore/SGHapticGlove.h"
|
#include "SGCore/SGHapticGlove.h"
|
||||||
@@ -204,7 +207,7 @@ void ASGPlayerController::BeginPlay()
|
|||||||
}
|
}
|
||||||
|
|
||||||
SGPawn->OnGrabStateUpdated().AddWeakLambda(
|
SGPawn->OnGrabStateUpdated().AddWeakLambda(
|
||||||
this, [=](const FSGGrabState& GrabState) -> void
|
this, [= SG_CAPTURE_THIS](const FSGGrabState& GrabState) -> void
|
||||||
{
|
{
|
||||||
if (!IsValid(SGPawn))
|
if (!IsValid(SGPawn))
|
||||||
{
|
{
|
||||||
@@ -235,7 +238,7 @@ void ASGPlayerController::BeginPlay()
|
|||||||
});
|
});
|
||||||
|
|
||||||
SGPawn->OnTouchStateUpdated().AddWeakLambda(
|
SGPawn->OnTouchStateUpdated().AddWeakLambda(
|
||||||
this, [=](const FSGTouchState& TouchState) -> void
|
this, [= SG_CAPTURE_THIS](const FSGTouchState& TouchState) -> void
|
||||||
{
|
{
|
||||||
Pimpl->UpdateHapticsFeedback(TouchState);
|
Pimpl->UpdateHapticsFeedback(TouchState);
|
||||||
});
|
});
|
||||||
@@ -338,7 +341,7 @@ void ASGPlayerController::FImpl::UpdateHapticsFeedback(const FSGTouchState& Touc
|
|||||||
Owner->GetWorldTimerManager().ClearTimer(TouchBuzzStopTimer);
|
Owner->GetWorldTimerManager().ClearTimer(TouchBuzzStopTimer);
|
||||||
|
|
||||||
FTimerDelegate TouchBuzzStopHandler;
|
FTimerDelegate TouchBuzzStopHandler;
|
||||||
TouchBuzzStopHandler.BindLambda([=]()-> void
|
TouchBuzzStopHandler.BindLambda([= SG_CAPTURE_THIS]()-> void
|
||||||
{
|
{
|
||||||
Glove->SendHaptics(USGBuzzCommand::Off(Owner));
|
Glove->SendHaptics(USGBuzzCommand::Off(Owner));
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* (The MIT License)
|
* (The MIT License)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2020 - 2023 SenseGlove
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
@@ -249,7 +249,7 @@ ASGVirtualHandActor::ASGVirtualHandActor(const FObjectInitializer& ObjectInitial
|
|||||||
|
|
||||||
WristTracker->SetRight(VirtualHand->IsRight());
|
WristTracker->SetRight(VirtualHand->IsRight());
|
||||||
|
|
||||||
GrabState = FSGGrabState(VirtualHand, nullptr, nullptr, nullptr, nullptr);
|
GrabState = FSGGrabState(VirtualHand, FVector::Zero(), {}, nullptr, nullptr, nullptr, nullptr);
|
||||||
TouchState = FSGTouchState(VirtualHand, nullptr, nullptr, nullptr, nullptr, nullptr);
|
TouchState = FSGTouchState(VirtualHand, nullptr, nullptr, nullptr, nullptr, nullptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* (The MIT License)
|
* (The MIT License)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2020 - 2023 SenseGlove
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
@@ -41,6 +41,8 @@
|
|||||||
|
|
||||||
FSGGrabState::FSGGrabState()
|
FSGGrabState::FSGGrabState()
|
||||||
: Hand(nullptr),
|
: Hand(nullptr),
|
||||||
|
PreviousHandLocation(FVector::Zero()),
|
||||||
|
HandVelocityHistory{},
|
||||||
ActorThumbCanGrab(nullptr),
|
ActorThumbCanGrab(nullptr),
|
||||||
ActorIndexCanGrab(nullptr),
|
ActorIndexCanGrab(nullptr),
|
||||||
ActorMiddleCanGrab(nullptr),
|
ActorMiddleCanGrab(nullptr),
|
||||||
@@ -49,11 +51,15 @@ FSGGrabState::FSGGrabState()
|
|||||||
}
|
}
|
||||||
|
|
||||||
FSGGrabState::FSGGrabState(USGVirtualHandComponent* InHand,
|
FSGGrabState::FSGGrabState(USGVirtualHandComponent* InHand,
|
||||||
|
const FVector& InPreviousHandLocation,
|
||||||
|
const TArray<FVector>& InHandVelocityHistory,
|
||||||
AActor* InActorThumbCanGrab,
|
AActor* InActorThumbCanGrab,
|
||||||
AActor* InActorIndexCanGrab,
|
AActor* InActorIndexCanGrab,
|
||||||
AActor* InActorMiddleCanGrab,
|
AActor* InActorMiddleCanGrab,
|
||||||
AActor* InGrabbedActor)
|
AActor* InGrabbedActor)
|
||||||
: Hand(InHand),
|
: Hand(InHand),
|
||||||
|
PreviousHandLocation(InPreviousHandLocation),
|
||||||
|
HandVelocityHistory(InHandVelocityHistory),
|
||||||
ActorThumbCanGrab(InActorThumbCanGrab),
|
ActorThumbCanGrab(InActorThumbCanGrab),
|
||||||
ActorIndexCanGrab(InActorIndexCanGrab),
|
ActorIndexCanGrab(InActorIndexCanGrab),
|
||||||
ActorMiddleCanGrab(InActorMiddleCanGrab),
|
ActorMiddleCanGrab(InActorMiddleCanGrab),
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* (The MIT License)
|
* (The MIT License)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2020 - 2023 SenseGlove
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* (The MIT License)
|
* (The MIT License)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2020 - 2023 SenseGlove
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* (The MIT License)
|
* (The MIT License)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2020 - 2023 SenseGlove
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* (The MIT License)
|
* (The MIT License)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2020 - 2023 SenseGlove
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* (The MIT License)
|
* (The MIT License)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2020 - 2023 SenseGlove
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* (The MIT License)
|
* (The MIT License)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2020 - 2023 SenseGlove
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* (The MIT License)
|
* (The MIT License)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2020 - 2023 SenseGlove
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* (The MIT License)
|
* (The MIT License)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2020 - 2023 SenseGlove
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
@@ -127,9 +127,6 @@ private:
|
|||||||
FSGDebugVirtualHandSettings DebugVirtualHandSettings;
|
FSGDebugVirtualHandSettings DebugVirtualHandSettings;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
UPROPERTY(Transient)
|
|
||||||
uint8 bBackendInitialized : 1;
|
|
||||||
|
|
||||||
UPROPERTY(Transient)
|
UPROPERTY(Transient)
|
||||||
USGHapticGlove* Glove;
|
USGHapticGlove* Glove;
|
||||||
|
|
||||||
@@ -254,6 +251,21 @@ public:
|
|||||||
PinkyFingertipTouchSocketName = SocketName;
|
PinkyFingertipTouchSocketName = SocketName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
FORCEINLINE const FSGDebugVirtualHandSettings& GetDebugVirtualHandSettings() const
|
||||||
|
{
|
||||||
|
return DebugVirtualHandSettings;
|
||||||
|
}
|
||||||
|
|
||||||
|
FORCEINLINE FSGDebugVirtualHandSettings& GetDebugVirtualHandSettings()
|
||||||
|
{
|
||||||
|
return DebugVirtualHandSettings;
|
||||||
|
}
|
||||||
|
|
||||||
|
FORCEINLINE void SetDebugVirtualHandSettings(const FSGDebugVirtualHandSettings& InDebugVirtualHandSettings)
|
||||||
|
{
|
||||||
|
DebugVirtualHandSettings = InDebugVirtualHandSettings;
|
||||||
|
}
|
||||||
|
|
||||||
FORCEINLINE bool IsHiddenInGameIfNoGloveDetected() const
|
FORCEINLINE bool IsHiddenInGameIfNoGloveDetected() const
|
||||||
{
|
{
|
||||||
return !!bHiddenInGameIfNoGloveDetected;
|
return !!bHiddenInGameIfNoGloveDetected;
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* (The MIT License)
|
* (The MIT License)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2020 - 2023 SenseGlove
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
@@ -111,9 +111,6 @@ private:
|
|||||||
FSGWristTrackingSettings WristTrackingSettings;
|
FSGWristTrackingSettings WristTrackingSettings;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
UPROPERTY(Transient)
|
|
||||||
uint8 bBackendInitialized : 1;
|
|
||||||
|
|
||||||
UPROPERTY(Transient)
|
UPROPERTY(Transient)
|
||||||
USGHapticGlove* Glove;
|
USGHapticGlove* Glove;
|
||||||
|
|
||||||
@@ -166,12 +163,8 @@ public:
|
|||||||
|
|
||||||
virtual void InitializeComponent() override;
|
virtual void InitializeComponent() override;
|
||||||
|
|
||||||
virtual void UninitializeComponent() override;
|
|
||||||
|
|
||||||
virtual void BeginPlay() override;
|
virtual void BeginPlay() override;
|
||||||
|
|
||||||
virtual void EndPlay(const EEndPlayReason::Type EndPlayReason) override;
|
|
||||||
|
|
||||||
virtual void TickComponent(float DeltaTime,
|
virtual void TickComponent(float DeltaTime,
|
||||||
enum ELevelTick TickType,
|
enum ELevelTick TickType,
|
||||||
FActorComponentTickFunction* ThisTickFunction) override;
|
FActorComponentTickFunction* ThisTickFunction) override;
|
||||||
|
|||||||
@@ -0,0 +1,50 @@
|
|||||||
|
/**
|
||||||
|
* @file
|
||||||
|
*
|
||||||
|
* @author Mamadou Babaei <mamadou@senseglove.com>
|
||||||
|
*
|
||||||
|
* @section LICENSE
|
||||||
|
*
|
||||||
|
* (The MIT License)
|
||||||
|
*
|
||||||
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
|
*
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
* in the Software without restriction, including without limitation the rights
|
||||||
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
* copies of the Software, and to permit persons to whom the Software is
|
||||||
|
* furnished to do so, subject to the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included in all
|
||||||
|
* copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
* SOFTWARE.
|
||||||
|
*
|
||||||
|
* @section DESCRIPTION
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "Engine/GameInstance.h"
|
||||||
|
|
||||||
|
#include "SGGameInstance.generated.h"
|
||||||
|
|
||||||
|
UCLASS(config=Game, Transient, BlueprintType, Blueprintable)
|
||||||
|
class SENSEGLOVE_API USGGameInstance : public UGameInstance
|
||||||
|
{
|
||||||
|
GENERATED_UCLASS_BODY()
|
||||||
|
|
||||||
|
public:
|
||||||
|
virtual void Init() override;
|
||||||
|
virtual void Shutdown() override;
|
||||||
|
};
|
||||||
@@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* (The MIT License)
|
* (The MIT License)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2020 - 2023 SenseGlove
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* (The MIT License)
|
* (The MIT License)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2020 - 2023 SenseGlove
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
@@ -35,6 +35,7 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include "Containers/Array.h"
|
||||||
#include "GameFramework/Pawn.h"
|
#include "GameFramework/Pawn.h"
|
||||||
#include "SenseGlove/Components/SGVirtualHandComponent.h"
|
#include "SenseGlove/Components/SGVirtualHandComponent.h"
|
||||||
#include "Templates/UniquePtr.h"
|
#include "Templates/UniquePtr.h"
|
||||||
@@ -57,23 +58,55 @@ class SENSEGLOVE_API ASGPawn : public APawn
|
|||||||
GENERATED_UCLASS_BODY()
|
GENERATED_UCLASS_BODY()
|
||||||
|
|
||||||
public:
|
public:
|
||||||
DECLARE_EVENT_OneParam(ASGVirtualHandActor, FGrabStateUpdatedEvent, const FSGGrabState& GrabState);
|
DECLARE_EVENT_OneParam(ASGPawn, FGrabStateUpdatedEvent, const FSGGrabState& GrabState);
|
||||||
|
|
||||||
FGrabStateUpdatedEvent& OnGrabStateUpdated()
|
FGrabStateUpdatedEvent& OnGrabStateUpdated()
|
||||||
{
|
{
|
||||||
return GrabStateUpdatedEvent;
|
return GrabStateUpdatedEvent;
|
||||||
};
|
};
|
||||||
|
|
||||||
DECLARE_EVENT_OneParam(ASGVirtualHandActor, FTouchStateUpdatedEvent, const FSGTouchState& TouchState)
|
DECLARE_EVENT_OneParam(ASGPawn, FTouchStateUpdatedEvent, const FSGTouchState& TouchState)
|
||||||
|
|
||||||
FTouchStateUpdatedEvent& OnTouchStateUpdated()
|
FTouchStateUpdatedEvent& OnTouchStateUpdated()
|
||||||
{
|
{
|
||||||
return TouchStateUpdatedEvent;
|
return TouchStateUpdatedEvent;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
DECLARE_EVENT_TwoParams(ASGPawn, FActorGrabbedEvent, const USGVirtualHandComponent* Hand, const AActor* Actor);
|
||||||
|
|
||||||
|
FActorGrabbedEvent& OnGrabbed()
|
||||||
|
{
|
||||||
|
return ActorGrabbedEvent;
|
||||||
|
};
|
||||||
|
|
||||||
|
DECLARE_EVENT_TwoParams(ASGPawn, FActorReleasedEvent, const USGVirtualHandComponent* Hand, const AActor* Actor);
|
||||||
|
|
||||||
|
FActorReleasedEvent& OnReleased()
|
||||||
|
{
|
||||||
|
return ActorReleasedEvent;
|
||||||
|
};
|
||||||
|
|
||||||
|
DECLARE_EVENT_TwoParams(ASGPawn, FActorBeginTouchEvent, const USGVirtualHandComponent* Hand, const AActor* Actor);
|
||||||
|
|
||||||
|
FActorBeginTouchEvent& OnActorBeginTouch()
|
||||||
|
{
|
||||||
|
return ActorBeginTouchEvent;
|
||||||
|
};
|
||||||
|
|
||||||
|
DECLARE_EVENT_TwoParams(ASGPawn, FActorEndTouchEvent, const USGVirtualHandComponent* Hand, const AActor* Actor);
|
||||||
|
|
||||||
|
FActorEndTouchEvent& OnActorEndTouch()
|
||||||
|
{
|
||||||
|
return ActorEndTouchEvent;
|
||||||
|
};
|
||||||
|
|
||||||
private:
|
private:
|
||||||
FGrabStateUpdatedEvent GrabStateUpdatedEvent;
|
FGrabStateUpdatedEvent GrabStateUpdatedEvent;
|
||||||
FTouchStateUpdatedEvent TouchStateUpdatedEvent;
|
FTouchStateUpdatedEvent TouchStateUpdatedEvent;
|
||||||
|
FActorGrabbedEvent ActorGrabbedEvent;
|
||||||
|
FActorReleasedEvent ActorReleasedEvent;
|
||||||
|
FActorBeginTouchEvent ActorBeginTouchEvent;
|
||||||
|
FActorEndTouchEvent ActorEndTouchEvent;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
struct FImpl;
|
struct FImpl;
|
||||||
@@ -99,6 +132,9 @@ private:
|
|||||||
UPROPERTY(VisibleAnywhere, Category="SenseGlove", meta=(AllowPrivateAccess="false"))
|
UPROPERTY(VisibleAnywhere, Category="SenseGlove", meta=(AllowPrivateAccess="false"))
|
||||||
USGVirtualHandComponent* HandLeft;
|
USGVirtualHandComponent* HandLeft;
|
||||||
|
|
||||||
|
UPROPERTY(VisibleAnywhere, Category="SenseGlove", meta=(AllowPrivateAccess="false"))
|
||||||
|
USGVirtualHandComponent* RealHandLeft;
|
||||||
|
|
||||||
UPROPERTY(EditAnywhere, Category="SenseGlove", meta=(AllowPrivateAccess="false"))
|
UPROPERTY(EditAnywhere, Category="SenseGlove", meta=(AllowPrivateAccess="false"))
|
||||||
USphereComponent* LeftThumbFingertipGrabCollider;
|
USphereComponent* LeftThumbFingertipGrabCollider;
|
||||||
|
|
||||||
@@ -129,6 +165,9 @@ private:
|
|||||||
UPROPERTY(VisibleAnywhere, Category="SenseGlove", meta=(AllowPrivateAccess="false"))
|
UPROPERTY(VisibleAnywhere, Category="SenseGlove", meta=(AllowPrivateAccess="false"))
|
||||||
USGVirtualHandComponent* HandRight;
|
USGVirtualHandComponent* HandRight;
|
||||||
|
|
||||||
|
UPROPERTY(VisibleAnywhere, Category="SenseGlove", meta=(AllowPrivateAccess="false"))
|
||||||
|
USGVirtualHandComponent* RealHandRight;
|
||||||
|
|
||||||
UPROPERTY(EditAnywhere, Category="SenseGlove", meta=(AllowPrivateAccess="false"))
|
UPROPERTY(EditAnywhere, Category="SenseGlove", meta=(AllowPrivateAccess="false"))
|
||||||
USphereComponent* RightThumbFingertipGrabCollider;
|
USphereComponent* RightThumbFingertipGrabCollider;
|
||||||
|
|
||||||
@@ -153,6 +192,9 @@ private:
|
|||||||
UPROPERTY(EditAnywhere, Category="SenseGlove", meta=(AllowPrivateAccess="false"))
|
UPROPERTY(EditAnywhere, Category="SenseGlove", meta=(AllowPrivateAccess="false"))
|
||||||
USphereComponent* RightPinkyFingertipTouchCollider;
|
USphereComponent* RightPinkyFingertipTouchCollider;
|
||||||
|
|
||||||
|
UPROPERTY(EditAnywhere, Category="SenseGlove", meta=(AllowPrivateAccess="false"))
|
||||||
|
int32 MaxNumberOfHandVelocitySamples;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
UPROPERTY(Transient)
|
UPROPERTY(Transient)
|
||||||
FSGGrabState LeftHandGrabState;
|
FSGGrabState LeftHandGrabState;
|
||||||
@@ -166,6 +208,31 @@ private:
|
|||||||
UPROPERTY(Transient)
|
UPROPERTY(Transient)
|
||||||
FSGTouchState RightHandTouchState;
|
FSGTouchState RightHandTouchState;
|
||||||
|
|
||||||
|
UPROPERTY(Transient)
|
||||||
|
TArray<const AActor*> LeftHandOverlappedActors;
|
||||||
|
|
||||||
|
UPROPERTY(Transient)
|
||||||
|
TArray<const AActor*> RightHandOverlappedActors;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
UFUNCTION(BlueprintNativeEvent, Category="SenseGlove | Game Framework | Pawn")
|
||||||
|
void OnGrabStateUpdated(const FSGGrabState& GrabState);
|
||||||
|
|
||||||
|
UFUNCTION(BlueprintNativeEvent, Category="SenseGlove | Game Framework | Pawn")
|
||||||
|
void OnTouchStateUpdated(const FSGTouchState& TouchState);
|
||||||
|
|
||||||
|
UFUNCTION(BlueprintNativeEvent, Category="SenseGlove | Game Framework | Pawn")
|
||||||
|
void OnActorGrabbed(const USGVirtualHandComponent* Hand, const AActor* Actor);
|
||||||
|
|
||||||
|
UFUNCTION(BlueprintNativeEvent, Category="SenseGlove | Game Framework | Pawn")
|
||||||
|
void OnActorReleased(const USGVirtualHandComponent* Hand, const AActor* Actor);
|
||||||
|
|
||||||
|
UFUNCTION(BlueprintNativeEvent, Category="SenseGlove | Game Framework | Pawn")
|
||||||
|
void OnActorBeginTouch(const USGVirtualHandComponent* Hand, const AActor* Actor);
|
||||||
|
|
||||||
|
UFUNCTION(BlueprintNativeEvent, Category="SenseGlove | Game Framework | Pawn")
|
||||||
|
void OnActorEndTouch(const USGVirtualHandComponent* Hand, const AActor* Actor);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
FORCEINLINE UCameraComponent* GetCamera() const
|
FORCEINLINE UCameraComponent* GetCamera() const
|
||||||
{
|
{
|
||||||
@@ -182,6 +249,11 @@ public:
|
|||||||
return HandLeft;
|
return HandLeft;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
FORCEINLINE USGVirtualHandComponent* GetRealHandLeft() const
|
||||||
|
{
|
||||||
|
return RealHandLeft;
|
||||||
|
}
|
||||||
|
|
||||||
FORCEINLINE USphereComponent* GetLeftThumbFingertipGrabCollider() const
|
FORCEINLINE USphereComponent* GetLeftThumbFingertipGrabCollider() const
|
||||||
{
|
{
|
||||||
return LeftThumbFingertipGrabCollider;
|
return LeftThumbFingertipGrabCollider;
|
||||||
@@ -232,6 +304,11 @@ public:
|
|||||||
return HandRight;
|
return HandRight;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
FORCEINLINE USGVirtualHandComponent* GetRealHandRight() const
|
||||||
|
{
|
||||||
|
return RealHandRight;
|
||||||
|
}
|
||||||
|
|
||||||
FORCEINLINE USphereComponent* GetRightThumbFingertipGrabCollider() const
|
FORCEINLINE USphereComponent* GetRightThumbFingertipGrabCollider() const
|
||||||
{
|
{
|
||||||
return RightThumbFingertipGrabCollider;
|
return RightThumbFingertipGrabCollider;
|
||||||
@@ -272,12 +349,56 @@ public:
|
|||||||
return RightPinkyFingertipTouchCollider;
|
return RightPinkyFingertipTouchCollider;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
FORCEINLINE int32 GetMaxNumberOfHandVelocitySamples() const
|
||||||
|
{
|
||||||
|
return MaxNumberOfHandVelocitySamples;
|
||||||
|
}
|
||||||
|
|
||||||
|
FORCEINLINE void SetMaxNumberOfHandVelocitySamples(const int32 InMaxNumberOfHandVelocitySamples)
|
||||||
|
{
|
||||||
|
MaxNumberOfHandVelocitySamples = InMaxNumberOfHandVelocitySamples;
|
||||||
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
virtual void BeginPlay() override;
|
virtual void BeginPlay() override;
|
||||||
virtual void EndPlay(const EEndPlayReason::Type EndPlayReason) override;
|
virtual void EndPlay(const EEndPlayReason::Type EndPlayReason) override;
|
||||||
|
virtual void Tick(float DeltaSeconds) override;
|
||||||
virtual void PreInitializeComponents() override;
|
virtual void PreInitializeComponents() override;
|
||||||
|
virtual void PostInitializeComponents() override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
UFUNCTION()
|
||||||
|
virtual void OnRealLeftHandOverlapBegins(
|
||||||
|
UPrimitiveComponent* OverlappedComponent,
|
||||||
|
AActor* OtherActor,
|
||||||
|
UPrimitiveComponent* OtherComp,
|
||||||
|
int32 OtherBodyIndex,
|
||||||
|
bool bFromSweep,
|
||||||
|
const FHitResult& SweepResult);
|
||||||
|
|
||||||
|
UFUNCTION()
|
||||||
|
virtual void OnRealLeftHandOverlapEnds(
|
||||||
|
UPrimitiveComponent* OverlappedComponent,
|
||||||
|
AActor* OtherActor,
|
||||||
|
UPrimitiveComponent* OtherComp,
|
||||||
|
int32 OtherBodyIndex);
|
||||||
|
|
||||||
|
UFUNCTION()
|
||||||
|
virtual void OnRealRightHandOverlapBegins(
|
||||||
|
UPrimitiveComponent* OverlappedComponent,
|
||||||
|
AActor* OtherActor,
|
||||||
|
UPrimitiveComponent* OtherComp,
|
||||||
|
int32 OtherBodyIndex,
|
||||||
|
bool bFromSweep,
|
||||||
|
const FHitResult& SweepResult);
|
||||||
|
|
||||||
|
UFUNCTION()
|
||||||
|
virtual void OnRealRightHandOverlapEnds(
|
||||||
|
UPrimitiveComponent* OverlappedComponent,
|
||||||
|
AActor* OtherActor,
|
||||||
|
UPrimitiveComponent* OtherComp,
|
||||||
|
int32 OtherBodyIndex);
|
||||||
|
|
||||||
UFUNCTION()
|
UFUNCTION()
|
||||||
virtual void OnLeftThumbFingertipGrabColliderOverlapBegins(
|
virtual void OnLeftThumbFingertipGrabColliderOverlapBegins(
|
||||||
UPrimitiveComponent* OverlappedComponent,
|
UPrimitiveComponent* OverlappedComponent,
|
||||||
@@ -573,19 +694,19 @@ public:
|
|||||||
|
|
||||||
FORCEINLINE bool CanGrab(const USGVirtualHandComponent* Hand, const AActor* Actor) const
|
FORCEINLINE bool CanGrab(const USGVirtualHandComponent* Hand, const AActor* Actor) const
|
||||||
{
|
{
|
||||||
return Hand == HandLeft ? CanLeftHandGrab(Actor) : CanRightHandGrab(Actor);
|
return Hand == HandRight ? CanRightHandGrab(Actor) : CanLeftHandGrab(Actor);
|
||||||
}
|
}
|
||||||
|
|
||||||
FORCEINLINE bool IsGrabbing(const USGVirtualHandComponent* Hand, const AActor* Actor) const
|
FORCEINLINE bool IsGrabbing(const USGVirtualHandComponent* Hand, const AActor* Actor) const
|
||||||
{
|
{
|
||||||
return Hand == HandLeft ? IsLeftHandGrabbing(Actor) : IsRightHandGrabbing(Actor);
|
return Hand == HandRight ? IsRightHandGrabbing(Actor) : IsLeftHandGrabbing(Actor);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool IsGrabbing(const USGVirtualHandComponent* Hand, AActor*& OutActor) const;
|
bool IsGrabbing(const USGVirtualHandComponent* Hand, AActor*& OutActor) const;
|
||||||
|
|
||||||
FORCEINLINE bool IsGrabbing(const USGVirtualHandComponent* Hand) const
|
FORCEINLINE bool IsGrabbing(const USGVirtualHandComponent* Hand) const
|
||||||
{
|
{
|
||||||
return Hand == HandLeft ? IsLeftHandGrabbing() : IsRightHandGrabbing();
|
return Hand == HandRight ? IsRightHandGrabbing() : IsLeftHandGrabbing();
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
@@ -607,6 +728,6 @@ public:
|
|||||||
|
|
||||||
FORCEINLINE void Release(const USGVirtualHandComponent* Hand)
|
FORCEINLINE void Release(const USGVirtualHandComponent* Hand)
|
||||||
{
|
{
|
||||||
return Hand == HandLeft ? ReleaseLeft() : ReleaseRight();
|
return Hand == HandRight ? ReleaseRight() : ReleaseLeft();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* (The MIT License)
|
* (The MIT License)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2020 - 2023 SenseGlove
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* (The MIT License)
|
* (The MIT License)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2020 - 2023 SenseGlove
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* (The MIT License)
|
* (The MIT License)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2020 - 2023 SenseGlove
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
@@ -35,6 +35,8 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include "Containers/Array.h"
|
||||||
|
#include "Math/Vector.h"
|
||||||
#include "UObject/ObjectMacros.h"
|
#include "UObject/ObjectMacros.h"
|
||||||
|
|
||||||
#include "SGGrabState.generated.h"
|
#include "SGGrabState.generated.h"
|
||||||
@@ -53,6 +55,12 @@ public:
|
|||||||
UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "SenseGlove")
|
UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "SenseGlove")
|
||||||
USGVirtualHandComponent* Hand;
|
USGVirtualHandComponent* Hand;
|
||||||
|
|
||||||
|
UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "SenseGlove")
|
||||||
|
FVector PreviousHandLocation;
|
||||||
|
|
||||||
|
UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "SenseGlove")
|
||||||
|
TArray<FVector> HandVelocityHistory;
|
||||||
|
|
||||||
UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "SenseGlove")
|
UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "SenseGlove")
|
||||||
AActor* ActorThumbCanGrab;
|
AActor* ActorThumbCanGrab;
|
||||||
|
|
||||||
@@ -69,6 +77,8 @@ public:
|
|||||||
FSGGrabState();
|
FSGGrabState();
|
||||||
|
|
||||||
explicit FSGGrabState(USGVirtualHandComponent* InHand,
|
explicit FSGGrabState(USGVirtualHandComponent* InHand,
|
||||||
|
const FVector& InPreviousHandLocation,
|
||||||
|
const TArray<FVector>& InHandVelocityHistory,
|
||||||
AActor* InActorThumbCanGrab,
|
AActor* InActorThumbCanGrab,
|
||||||
AActor* InActorIndexCanGrab,
|
AActor* InActorIndexCanGrab,
|
||||||
AActor* InActorMiddleCanGrab,
|
AActor* InActorMiddleCanGrab,
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* (The MIT License)
|
* (The MIT License)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2020 - 2023 SenseGlove
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* (The MIT License)
|
* (The MIT License)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2020 - 2023 SenseGlove
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
@@ -57,6 +57,7 @@ public class SenseGlove : ModuleRules
|
|||||||
"Engine",
|
"Engine",
|
||||||
"HeadMountedDisplay",
|
"HeadMountedDisplay",
|
||||||
"InputCore",
|
"InputCore",
|
||||||
|
"SenseGloveBackend",
|
||||||
"SenseGloveConnect",
|
"SenseGloveConnect",
|
||||||
"SenseGloveCore",
|
"SenseGloveCore",
|
||||||
"SenseGloveDebug",
|
"SenseGloveDebug",
|
||||||
@@ -65,5 +66,12 @@ public class SenseGlove : ModuleRules
|
|||||||
"SenseGloveTypes",
|
"SenseGloveTypes",
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
PrivateIncludePathModuleNames.AddRange(
|
||||||
|
new string[]
|
||||||
|
{
|
||||||
|
"SenseGloveBuildHacks",
|
||||||
|
}
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* (The MIT License)
|
* (The MIT License)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2020 - 2023 SenseGlove
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* (The MIT License)
|
* (The MIT License)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2020 - 2023 SenseGlove
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* (The MIT License)
|
* (The MIT License)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2020 - 2023 SenseGlove
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* (The MIT License)
|
* (The MIT License)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2020 - 2023 SenseGlove
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* (The MIT License)
|
* (The MIT License)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2020 - 2023 SenseGlove
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* (The MIT License)
|
* (The MIT License)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2020 - 2023 SenseGlove
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* (The MIT License)
|
* (The MIT License)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2020 - 2023 SenseGlove
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* (The MIT License)
|
* (The MIT License)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2020 - 2023 SenseGlove
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* (The MIT License)
|
* (The MIT License)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2020 - 2023 SenseGlove
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
(The MIT License)
|
(The MIT License)
|
||||||
|
|
||||||
Copyright (c) 2020 - 2023 SenseGlove
|
Copyright (c) 2020 - 2024 SenseGlove
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
@@ -59,12 +59,30 @@
|
|||||||
<log text="SenseGloveAndroid [WARN]: this architecture is not supported!"/>
|
<log text="SenseGloveAndroid [WARN]: this architecture is not supported!"/>
|
||||||
</false>
|
</false>
|
||||||
</if>
|
</if>
|
||||||
|
|
||||||
|
<setBoolFromProperty result="bCreateAFSProject" ini="Engine" section="/Script/AndroidFileServerEditor.AndroidFileServerRuntimeSettings" property="bEnablePlugin" default="true"/>
|
||||||
</init>
|
</init>
|
||||||
|
|
||||||
<resourceCopies>
|
<resourceCopies>
|
||||||
<copyFile src="$S(PluginDir)/../ThirdParty/android/sgconnect.jar" dst="$S(BuildDir)/gradle/app/libs/sgconnect.jar" />
|
<copyFile src="$S(PluginDir)/../ThirdParty/android/sgconnect.jar" dst="$S(BuildDir)/gradle/app/libs/sgconnect.jar" />
|
||||||
</resourceCopies>
|
</resourceCopies>
|
||||||
|
|
||||||
|
<gradleCopies>
|
||||||
|
<if condition="bCreateAFSProject">
|
||||||
|
<true>
|
||||||
|
<!-- Also copy into AFSProject -->
|
||||||
|
<!--
|
||||||
|
We have a dependency in the buildGradleAdditions which
|
||||||
|
isn't in the AFSProject which is compiled for shipping
|
||||||
|
builds when AndroidFileServer (AFS) is enabled. To keep
|
||||||
|
the size of the AFS APK small it doesn't automatically
|
||||||
|
copy all the libs over.
|
||||||
|
-->
|
||||||
|
<copyFile src="$S(PluginDir)/../ThirdParty/android/sgconnect.jar" dst="$S(BuildDir)/gradle/AFSProject/app/libs/sgconnect.jar" />
|
||||||
|
</true>
|
||||||
|
</if>
|
||||||
|
</gradleCopies>
|
||||||
|
|
||||||
<gradleProperties>
|
<gradleProperties>
|
||||||
<insert>
|
<insert>
|
||||||
kapt.incremental.apt=true
|
kapt.incremental.apt=true
|
||||||
@@ -73,18 +91,15 @@
|
|||||||
|
|
||||||
<proguardAdditions>
|
<proguardAdditions>
|
||||||
<insert>
|
<insert>
|
||||||
|
|
||||||
<!-- Disable obfuscation for SenseGlove classes -->
|
<!-- Disable obfuscation for SenseGlove classes -->
|
||||||
-dontwarn com.senseglove.**
|
-dontwarn com.senseglove.**
|
||||||
-keep class com.senseglove.** { *; }
|
-keep class com.senseglove.** { *; }
|
||||||
-keep interface com.senseglove.** { *; }
|
-keep interface com.senseglove.** { *; }
|
||||||
-keep public class com.senseglove.sgconnect.** { public protected *; }
|
-keep public class com.senseglove.sgconnect.** { public protected *; }
|
||||||
|
|
||||||
</insert>
|
</insert>
|
||||||
</proguardAdditions>
|
</proguardAdditions>
|
||||||
|
|
||||||
<androidManifestUpdates>
|
<androidManifestUpdates>
|
||||||
|
|
||||||
<!-- For target SDK 31 update the SplashActivity activity -->
|
<!-- For target SDK 31 update the SplashActivity activity -->
|
||||||
<loopElements tag="activity">
|
<loopElements tag="activity">
|
||||||
<setStringFromAttribute result="activityName" tag="$" name="android:name"/>
|
<setStringFromAttribute result="activityName" tag="$" name="android:name"/>
|
||||||
@@ -100,7 +115,6 @@
|
|||||||
<addPermission android:name="android.permission.BLUETOOTH_ADMIN"/>
|
<addPermission android:name="android.permission.BLUETOOTH_ADMIN"/>
|
||||||
<addPermission android:name="android.permission.ACCESS_BACKGROUND_LOCATION"/>
|
<addPermission android:name="android.permission.ACCESS_BACKGROUND_LOCATION"/>
|
||||||
<addPermission android:name="android.permission.ACCESS_FINE_LOCATION"/>
|
<addPermission android:name="android.permission.ACCESS_FINE_LOCATION"/>
|
||||||
|
|
||||||
</androidManifestUpdates>
|
</androidManifestUpdates>
|
||||||
|
|
||||||
<buildGradleAdditions>
|
<buildGradleAdditions>
|
||||||
@@ -123,7 +137,6 @@
|
|||||||
dependencies {
|
dependencies {
|
||||||
implementation files('libs/sgconnect.jar')
|
implementation files('libs/sgconnect.jar')
|
||||||
}
|
}
|
||||||
|
|
||||||
</insert>
|
</insert>
|
||||||
</buildGradleAdditions>
|
</buildGradleAdditions>
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,223 @@
|
|||||||
|
/**
|
||||||
|
* @file
|
||||||
|
*
|
||||||
|
* @author Mamadou Babaei <mamadou@senseglove.com>
|
||||||
|
*
|
||||||
|
* @section LICENSE
|
||||||
|
*
|
||||||
|
* (The MIT License)
|
||||||
|
*
|
||||||
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
|
*
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
* in the Software without restriction, including without limitation the rights
|
||||||
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
* copies of the Software, and to permit persons to whom the Software is
|
||||||
|
* furnished to do so, subject to the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included in all
|
||||||
|
* copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
* SOFTWARE.
|
||||||
|
*
|
||||||
|
* @section DESCRIPTION
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
#include "SGBackend/SGBackend.h"
|
||||||
|
|
||||||
|
#include "Engine/Engine.h"
|
||||||
|
|
||||||
|
#include "SGConnect/SGConnect.h"
|
||||||
|
#include "SGCore/SGDeviceList.h"
|
||||||
|
#include "SGCore/SGHapticGloveHandProfiles.h"
|
||||||
|
#include "SGLog/SGLog.h"
|
||||||
|
|
||||||
|
struct USGBackend::FImpl
|
||||||
|
{
|
||||||
|
/************************
|
||||||
|
* Owner object
|
||||||
|
************************/
|
||||||
|
|
||||||
|
USGBackend* Owner;
|
||||||
|
|
||||||
|
/************************
|
||||||
|
* Constructor / Destructor
|
||||||
|
************************/
|
||||||
|
|
||||||
|
explicit FImpl(USGBackend* InOwner);
|
||||||
|
~FImpl();
|
||||||
|
|
||||||
|
/************************
|
||||||
|
* Default copy constructor & copy assignment operator
|
||||||
|
************************/
|
||||||
|
|
||||||
|
FImpl(const FImpl& Rhs) = default;
|
||||||
|
FImpl& operator=(const FImpl& Rhs) = default;
|
||||||
|
};
|
||||||
|
|
||||||
|
USGBackend* USGBackend::GetInstance()
|
||||||
|
{
|
||||||
|
if (!ensureAlwaysMsgf(GEngine, TEXT("The engine has not been initialized!")))
|
||||||
|
{
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
|
USGBackend* Instance{GEngine->GetEngineSubsystem<USGBackend>()};
|
||||||
|
return Instance;
|
||||||
|
}
|
||||||
|
|
||||||
|
USGBackend::USGBackend()
|
||||||
|
: Pimpl(TUniquePtr<FImpl, FImplDeleter>(new FImpl{this}, PimplDeleter))
|
||||||
|
{
|
||||||
|
bBackendInitialized = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool USGBackend::InitializeBackend()
|
||||||
|
{
|
||||||
|
if (!IsBackendInitialized())
|
||||||
|
{
|
||||||
|
#if PLATFORM_ANDROID
|
||||||
|
const int32_t Result = FSGConnect::Init();
|
||||||
|
switch (Result)
|
||||||
|
{
|
||||||
|
case -3:
|
||||||
|
SGLOG_ERROR("An Unexpected error occurred. Please try again.");
|
||||||
|
return false;
|
||||||
|
case -2:
|
||||||
|
SGLOG_ERROR("Device Scanning is already running within a different program.");
|
||||||
|
return false;
|
||||||
|
case -1:
|
||||||
|
SGLOG_ERROR("Device Scanning already being initialized (function called twice in short succession).");
|
||||||
|
return false;
|
||||||
|
case 0:
|
||||||
|
SGLOG_ERROR("Device Scanning is already running within this program.");
|
||||||
|
return false;
|
||||||
|
case 1:
|
||||||
|
SGLOG("Successfully started up DeviceScanning from the current program.");
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
ensureAlwaysMsgf(false, TEXT("Unhandled Init return status code!"));
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
#endif /* PLATFORM_ANDROID */
|
||||||
|
|
||||||
|
// Ensure that the device list is empty before doing anything.
|
||||||
|
FSGDeviceList::Dispose();
|
||||||
|
FSGDeviceList::Reinitialize();
|
||||||
|
|
||||||
|
// Load the latest hand profiles.
|
||||||
|
FSGHapticGloveHandProfiles::TryLoadingFromDisk();
|
||||||
|
|
||||||
|
bBackendInitialized = true;
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool USGBackend::UninitializeBackend()
|
||||||
|
{
|
||||||
|
if (IsBackendInitialized())
|
||||||
|
{
|
||||||
|
FSGDeviceList::Dispose();
|
||||||
|
|
||||||
|
#if PLATFORM_ANDROID
|
||||||
|
const int32_t Result = FSGConnect::Dispose();
|
||||||
|
switch (Result)
|
||||||
|
{
|
||||||
|
case -3:
|
||||||
|
SGLOG_ERROR("An Unexpected error occurred. Please try again.");
|
||||||
|
return false;
|
||||||
|
case -2:
|
||||||
|
SGLOG_ERROR("Not allowed to dispose of Device Scanning because this is not the program which started it.");
|
||||||
|
return false;
|
||||||
|
case -1:
|
||||||
|
SGLOG_ERROR("Device Scanning is currently being disposed off. This takes a second or two. (function called twice in short succession).");
|
||||||
|
return false;
|
||||||
|
case 0:
|
||||||
|
SGLOG_ERROR("There is no deviceScanner running from any program, so disposing is skipped.");
|
||||||
|
return false;
|
||||||
|
case 1:
|
||||||
|
SGLOG("Successfully disposed of DeviceScanner resources.");
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
ensureAlwaysMsgf(false, TEXT("Unhandled Dispose return status code!"));
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
#endif /* PLATFORM_ANDROID */
|
||||||
|
|
||||||
|
bBackendInitialized = false;
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool USGBackend::ShouldCreateSubsystem(UObject* Outer) const
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
void USGBackend::Initialize(FSubsystemCollectionBase& Collection)
|
||||||
|
{
|
||||||
|
SGLOG("Initializing the SenseGlove Backend singleton with the engine lifetime...");
|
||||||
|
|
||||||
|
Super::Initialize(Collection);
|
||||||
|
|
||||||
|
SGLOG("Initializing the SenseGlove Backend singleton with the engine lifetime...");
|
||||||
|
|
||||||
|
if (InitializeBackend())
|
||||||
|
{
|
||||||
|
SGLOG("The bridge to the SenseGlove Backend has been initialized successfully!")
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
SGLOG_ERROR("Failed to initialize the bridge to the SenseGlove Backend!")
|
||||||
|
}
|
||||||
|
|
||||||
|
SGLOG("The SenseGlove Backend singleton has been successfully initialized with the engine lifetime!");
|
||||||
|
}
|
||||||
|
|
||||||
|
void USGBackend::Deinitialize()
|
||||||
|
{
|
||||||
|
SGLOG("De-initializing the SenseGlove Backend singleton due to the engine lifetime expiration...");
|
||||||
|
|
||||||
|
Super::Deinitialize();
|
||||||
|
|
||||||
|
if (UninitializeBackend())
|
||||||
|
{
|
||||||
|
SGLOG("The bridge to the SenseGlove Backend has been uninitialized successfully!")
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
SGLOG_ERROR("Failed to uninitialize the bridge to the SenseGlove Backend!")
|
||||||
|
}
|
||||||
|
|
||||||
|
(void)Pimpl.Release();
|
||||||
|
|
||||||
|
SGLOG("The SenseGlove Backend singleton has been successfully de-initialized!");
|
||||||
|
}
|
||||||
|
|
||||||
|
USGBackend::FImpl::FImpl(USGBackend* InOwner)
|
||||||
|
: Owner(InOwner)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
USGBackend::FImpl::~FImpl() = default;
|
||||||
|
|
||||||
|
void USGBackend::FImplDeleter::operator()(const FImpl* P) const
|
||||||
|
{
|
||||||
|
delete P;
|
||||||
|
}
|
||||||
@@ -0,0 +1,40 @@
|
|||||||
|
/**
|
||||||
|
* @file
|
||||||
|
*
|
||||||
|
* @author Mamadou Babaei <mamadou@senseglove.com>
|
||||||
|
*
|
||||||
|
* @section LICENSE
|
||||||
|
*
|
||||||
|
* (The MIT License)
|
||||||
|
*
|
||||||
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
|
*
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
* in the Software without restriction, including without limitation the rights
|
||||||
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
* copies of the Software, and to permit persons to whom the Software is
|
||||||
|
* furnished to do so, subject to the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included in all
|
||||||
|
* copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
* SOFTWARE.
|
||||||
|
*
|
||||||
|
* @section DESCRIPTION
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
#include "SenseGloveBackend.h"
|
||||||
|
#include "Modules/ModuleManager.h"
|
||||||
|
#include "SenseGloveBackendModule.h"
|
||||||
|
|
||||||
|
IMPLEMENT_MODULE(FSenseGloveBackendModule, SenseGloveBackend)
|
||||||
@@ -0,0 +1,38 @@
|
|||||||
|
/**
|
||||||
|
* @file
|
||||||
|
*
|
||||||
|
* @author Mamadou Babaei <mamadou@senseglove.com>
|
||||||
|
*
|
||||||
|
* @section LICENSE
|
||||||
|
*
|
||||||
|
* (The MIT License)
|
||||||
|
*
|
||||||
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
|
*
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
* in the Software without restriction, including without limitation the rights
|
||||||
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
* copies of the Software, and to permit persons to whom the Software is
|
||||||
|
* furnished to do so, subject to the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included in all
|
||||||
|
* copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
* SOFTWARE.
|
||||||
|
*
|
||||||
|
* @section DESCRIPTION
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "CoreMinimal.h"
|
||||||
@@ -0,0 +1,63 @@
|
|||||||
|
/**
|
||||||
|
* @file
|
||||||
|
*
|
||||||
|
* @author Mamadou Babaei <mamadou@senseglove.com>
|
||||||
|
*
|
||||||
|
* @section LICENSE
|
||||||
|
*
|
||||||
|
* (The MIT License)
|
||||||
|
*
|
||||||
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
|
*
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
* in the Software without restriction, including without limitation the rights
|
||||||
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
* copies of the Software, and to permit persons to whom the Software is
|
||||||
|
* furnished to do so, subject to the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included in all
|
||||||
|
* copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
* SOFTWARE.
|
||||||
|
*
|
||||||
|
* @section DESCRIPTION
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
#include "SenseGloveBackendModule.h"
|
||||||
|
|
||||||
|
#include "SGLog/SGLog.h"
|
||||||
|
#include "SGBackend/SGBackend.h"
|
||||||
|
|
||||||
|
#define LOCTEXT_NAMESPACE "FSenseGloveBackendModule"
|
||||||
|
|
||||||
|
void FSenseGloveBackendModule::StartupModule()
|
||||||
|
{
|
||||||
|
SGLOG("Starting up SenseGloveBackend module...");
|
||||||
|
}
|
||||||
|
|
||||||
|
void FSenseGloveBackendModule::PreUnloadCallback()
|
||||||
|
{
|
||||||
|
SGLOG("Unloading SenseGloveBackend module...");
|
||||||
|
}
|
||||||
|
|
||||||
|
void FSenseGloveBackendModule::PostLoadCallback()
|
||||||
|
{
|
||||||
|
SGLOG("Loading of SenseGloveBackend module has succeeded!");
|
||||||
|
}
|
||||||
|
|
||||||
|
void FSenseGloveBackendModule::ShutdownModule()
|
||||||
|
{
|
||||||
|
SGLOG("Shutting down SenseGloveBackend module...");
|
||||||
|
}
|
||||||
|
|
||||||
|
#undef LOCTEXT_NAMESPACE
|
||||||
@@ -0,0 +1,51 @@
|
|||||||
|
/**
|
||||||
|
* @file
|
||||||
|
*
|
||||||
|
* @author Mamadou Babaei <mamadou@senseglove.com>
|
||||||
|
*
|
||||||
|
* @section LICENSE
|
||||||
|
*
|
||||||
|
* (The MIT License)
|
||||||
|
*
|
||||||
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
|
*
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
* in the Software without restriction, including without limitation the rights
|
||||||
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
* copies of the Software, and to permit persons to whom the Software is
|
||||||
|
* furnished to do so, subject to the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included in all
|
||||||
|
* copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
* SOFTWARE.
|
||||||
|
*
|
||||||
|
* @section DESCRIPTION
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "Modules/ModuleInterface.h"
|
||||||
|
|
||||||
|
#define LOCTEXT_NAMESPACE "SenseGloveBackend"
|
||||||
|
|
||||||
|
class FSenseGloveBackendModule : public IModuleInterface
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
virtual void StartupModule() override;
|
||||||
|
virtual void PreUnloadCallback() override;
|
||||||
|
virtual void PostLoadCallback() override;
|
||||||
|
virtual void ShutdownModule() override;
|
||||||
|
};
|
||||||
|
|
||||||
|
#undef LOCTEXT_NAMESPACE
|
||||||
@@ -0,0 +1,87 @@
|
|||||||
|
/**
|
||||||
|
* @file
|
||||||
|
*
|
||||||
|
* @author Mamadou Babaei <mamadou@senseglove.com>
|
||||||
|
*
|
||||||
|
* @section LICENSE
|
||||||
|
*
|
||||||
|
* (The MIT License)
|
||||||
|
*
|
||||||
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
|
*
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
* in the Software without restriction, including without limitation the rights
|
||||||
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
* copies of the Software, and to permit persons to whom the Software is
|
||||||
|
* furnished to do so, subject to the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included in all
|
||||||
|
* copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
* SOFTWARE.
|
||||||
|
*
|
||||||
|
* @section DESCRIPTION
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "Math/Color.h"
|
||||||
|
#include "Math/Rotator.h"
|
||||||
|
#include "Math/Vector.h"
|
||||||
|
#include "Subsystems/EngineSubsystem.h"
|
||||||
|
#include "Templates/UniquePtr.h"
|
||||||
|
#include "UObject/ObjectMacros.h"
|
||||||
|
|
||||||
|
#include "SGBackend.generated.h"
|
||||||
|
|
||||||
|
UCLASS(config = SenseGloveBackend)
|
||||||
|
class SENSEGLOVEBACKEND_API USGBackend : public UEngineSubsystem
|
||||||
|
{
|
||||||
|
GENERATED_BODY()
|
||||||
|
|
||||||
|
private:
|
||||||
|
UPROPERTY(Transient)
|
||||||
|
uint8 bBackendInitialized : 1;
|
||||||
|
|
||||||
|
public:
|
||||||
|
static USGBackend* GetInstance();
|
||||||
|
|
||||||
|
private:
|
||||||
|
struct FImpl;
|
||||||
|
|
||||||
|
struct FImplDeleter
|
||||||
|
{
|
||||||
|
void operator()(const FImpl* P) const;
|
||||||
|
};
|
||||||
|
|
||||||
|
TUniquePtr<FImpl, FImplDeleter> Pimpl;
|
||||||
|
FImplDeleter PimplDeleter;
|
||||||
|
|
||||||
|
public:
|
||||||
|
USGBackend();
|
||||||
|
|
||||||
|
public:
|
||||||
|
FORCEINLINE bool IsBackendInitialized() const
|
||||||
|
{
|
||||||
|
return !!bBackendInitialized;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool InitializeBackend();
|
||||||
|
bool UninitializeBackend();
|
||||||
|
|
||||||
|
public:
|
||||||
|
virtual bool ShouldCreateSubsystem(UObject* Outer) const override;
|
||||||
|
|
||||||
|
virtual void Initialize(FSubsystemCollectionBase& Collection) override;
|
||||||
|
virtual void Deinitialize() override;
|
||||||
|
};
|
||||||
@@ -0,0 +1,65 @@
|
|||||||
|
/**
|
||||||
|
* @file
|
||||||
|
*
|
||||||
|
* @author Mamadou Babaei <mamadou@senseglove.com>
|
||||||
|
*
|
||||||
|
* @section LICENSE
|
||||||
|
*
|
||||||
|
* (The MIT License)
|
||||||
|
*
|
||||||
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
|
*
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
* in the Software without restriction, including without limitation the rights
|
||||||
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
* copies of the Software, and to permit persons to whom the Software is
|
||||||
|
* furnished to do so, subject to the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included in all
|
||||||
|
* copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
* SOFTWARE.
|
||||||
|
*
|
||||||
|
* @section DESCRIPTION
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using UnrealBuildTool;
|
||||||
|
|
||||||
|
public class SenseGloveBackend : ModuleRules
|
||||||
|
{
|
||||||
|
public SenseGloveBackend(ReadOnlyTargetRules Target) : base(Target)
|
||||||
|
{
|
||||||
|
PCHUsage = ModuleRules.PCHUsageMode.UseExplicitOrSharedPCHs;
|
||||||
|
|
||||||
|
PublicDependencyModuleNames.AddRange(
|
||||||
|
new string[]
|
||||||
|
{
|
||||||
|
"Core",
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
PrivateDependencyModuleNames.AddRange(
|
||||||
|
new string[]
|
||||||
|
{
|
||||||
|
"CoreUObject",
|
||||||
|
"Engine",
|
||||||
|
"InputCore",
|
||||||
|
"SenseGloveConnect",
|
||||||
|
"SenseGloveCore",
|
||||||
|
"SenseGloveLog",
|
||||||
|
"SenseGloveTypes",
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,58 @@
|
|||||||
|
/**
|
||||||
|
* @file
|
||||||
|
*
|
||||||
|
* @author Mamadou Babaei <mamadou@senseglove.com>
|
||||||
|
*
|
||||||
|
* @section LICENSE
|
||||||
|
*
|
||||||
|
* (The MIT License)
|
||||||
|
*
|
||||||
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
|
*
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
* in the Software without restriction, including without limitation the rights
|
||||||
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
* copies of the Software, and to permit persons to whom the Software is
|
||||||
|
* furnished to do so, subject to the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included in all
|
||||||
|
* copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
* SOFTWARE.
|
||||||
|
*
|
||||||
|
* @section DESCRIPTION
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
#include "SGBackendKismet/SGBackendKismetLibrary.h"
|
||||||
|
|
||||||
|
#include "SGBackend/SGBackend.h"
|
||||||
|
|
||||||
|
USGBackend* USGBackendKismetLibrary::GetInstance()
|
||||||
|
{
|
||||||
|
return USGBackend::GetInstance();
|
||||||
|
}
|
||||||
|
|
||||||
|
bool USGBackendKismetLibrary::IsBackendInitialized(const USGBackend* Backend)
|
||||||
|
{
|
||||||
|
return Backend->IsBackendInitialized();
|
||||||
|
}
|
||||||
|
|
||||||
|
bool USGBackendKismetLibrary::InitializeBackend(USGBackend* Backend)
|
||||||
|
{
|
||||||
|
return Backend->InitializeBackend();
|
||||||
|
}
|
||||||
|
|
||||||
|
bool USGBackendKismetLibrary::UninitializeBackend(USGBackend* Backend)
|
||||||
|
{
|
||||||
|
return Backend->UninitializeBackend();
|
||||||
|
}
|
||||||
@@ -0,0 +1,40 @@
|
|||||||
|
/**
|
||||||
|
* @file
|
||||||
|
*
|
||||||
|
* @author Mamadou Babaei <mamadou@senseglove.com>
|
||||||
|
*
|
||||||
|
* @section LICENSE
|
||||||
|
*
|
||||||
|
* (The MIT License)
|
||||||
|
*
|
||||||
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
|
*
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
* in the Software without restriction, including without limitation the rights
|
||||||
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
* copies of the Software, and to permit persons to whom the Software is
|
||||||
|
* furnished to do so, subject to the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included in all
|
||||||
|
* copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
* SOFTWARE.
|
||||||
|
*
|
||||||
|
* @section DESCRIPTION
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
#include "SenseGloveBackendKismet.h"
|
||||||
|
#include "Modules/ModuleManager.h"
|
||||||
|
#include "SenseGloveBackendKismetModule.h"
|
||||||
|
|
||||||
|
IMPLEMENT_MODULE(FSenseGloveBackendKismetModule, SenseGloveBackendKismet)
|
||||||
@@ -0,0 +1,38 @@
|
|||||||
|
/**
|
||||||
|
* @file
|
||||||
|
*
|
||||||
|
* @author Mamadou Babaei <mamadou@senseglove.com>
|
||||||
|
*
|
||||||
|
* @section LICENSE
|
||||||
|
*
|
||||||
|
* (The MIT License)
|
||||||
|
*
|
||||||
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
|
*
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
* in the Software without restriction, including without limitation the rights
|
||||||
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
* copies of the Software, and to permit persons to whom the Software is
|
||||||
|
* furnished to do so, subject to the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included in all
|
||||||
|
* copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
* SOFTWARE.
|
||||||
|
*
|
||||||
|
* @section DESCRIPTION
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "CoreMinimal.h"
|
||||||
@@ -0,0 +1,62 @@
|
|||||||
|
/**
|
||||||
|
* @file
|
||||||
|
*
|
||||||
|
* @author Mamadou Babaei <mamadou@senseglove.com>
|
||||||
|
*
|
||||||
|
* @section LICENSE
|
||||||
|
*
|
||||||
|
* (The MIT License)
|
||||||
|
*
|
||||||
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
|
*
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
* in the Software without restriction, including without limitation the rights
|
||||||
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
* copies of the Software, and to permit persons to whom the Software is
|
||||||
|
* furnished to do so, subject to the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included in all
|
||||||
|
* copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
* SOFTWARE.
|
||||||
|
*
|
||||||
|
* @section DESCRIPTION
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
#include "SenseGloveBackendKismetModule.h"
|
||||||
|
|
||||||
|
#include "SGLog/SGLog.h"
|
||||||
|
|
||||||
|
#define LOCTEXT_NAMESPACE "FSenseGloveBackendKismetModule"
|
||||||
|
|
||||||
|
void FSenseGloveBackendKismetModule::StartupModule()
|
||||||
|
{
|
||||||
|
SGLOG("Starting up SenseGloveBackendKismet module...");
|
||||||
|
}
|
||||||
|
|
||||||
|
void FSenseGloveBackendKismetModule::PreUnloadCallback()
|
||||||
|
{
|
||||||
|
SGLOG("Unloading SenseGloveBackendKismet module...");
|
||||||
|
}
|
||||||
|
|
||||||
|
void FSenseGloveBackendKismetModule::PostLoadCallback()
|
||||||
|
{
|
||||||
|
SGLOG("Loading of SenseGloveBackendKismet module has succeeded!");
|
||||||
|
}
|
||||||
|
|
||||||
|
void FSenseGloveBackendKismetModule::ShutdownModule()
|
||||||
|
{
|
||||||
|
SGLOG("Shutting down SenseGloveBackendKismet module...");
|
||||||
|
}
|
||||||
|
|
||||||
|
#undef LOCTEXT_NAMESPACE
|
||||||
@@ -0,0 +1,51 @@
|
|||||||
|
/**
|
||||||
|
* @file
|
||||||
|
*
|
||||||
|
* @author Mamadou Babaei <mamadou@senseglove.com>
|
||||||
|
*
|
||||||
|
* @section LICENSE
|
||||||
|
*
|
||||||
|
* (The MIT License)
|
||||||
|
*
|
||||||
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
|
*
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
* in the Software without restriction, including without limitation the rights
|
||||||
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
* copies of the Software, and to permit persons to whom the Software is
|
||||||
|
* furnished to do so, subject to the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included in all
|
||||||
|
* copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
* SOFTWARE.
|
||||||
|
*
|
||||||
|
* @section DESCRIPTION
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "Modules/ModuleInterface.h"
|
||||||
|
|
||||||
|
#define LOCTEXT_NAMESPACE "SenseGloveBackendKismet"
|
||||||
|
|
||||||
|
class FSenseGloveBackendKismetModule : public IModuleInterface
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
virtual void StartupModule() override;
|
||||||
|
virtual void PreUnloadCallback() override;
|
||||||
|
virtual void PostLoadCallback() override;
|
||||||
|
virtual void ShutdownModule() override;
|
||||||
|
};
|
||||||
|
|
||||||
|
#undef LOCTEXT_NAMESPACE
|
||||||
@@ -0,0 +1,61 @@
|
|||||||
|
/**
|
||||||
|
* @file
|
||||||
|
*
|
||||||
|
* @author Mamadou Babaei <mamadou@senseglove.com>
|
||||||
|
*
|
||||||
|
* @section LICENSE
|
||||||
|
*
|
||||||
|
* (The MIT License)
|
||||||
|
*
|
||||||
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
|
*
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
* in the Software without restriction, including without limitation the rights
|
||||||
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
* copies of the Software, and to permit persons to whom the Software is
|
||||||
|
* furnished to do so, subject to the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included in all
|
||||||
|
* copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
* SOFTWARE.
|
||||||
|
*
|
||||||
|
* @section DESCRIPTION
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "SGKismet/SGBlueprintFunctionLibrary.h"
|
||||||
|
|
||||||
|
#include "SGBackendKismetLibrary.generated.h"
|
||||||
|
|
||||||
|
class USGBackend;
|
||||||
|
|
||||||
|
UCLASS(meta=(ScriptName = "SesneGloveBackendKismetLibrary"))
|
||||||
|
class SENSEGLOVEBACKENDKISMET_API USGBackendKismetLibrary final : public USGBlueprintFunctionLibrary
|
||||||
|
{
|
||||||
|
GENERATED_BODY()
|
||||||
|
|
||||||
|
public:
|
||||||
|
UFUNCTION(BlueprintCallable, Category="SenseGlove | Backend")
|
||||||
|
static USGBackend* GetInstance();
|
||||||
|
|
||||||
|
UFUNCTION(BlueprintPure, Category="SenseGlove | Backend")
|
||||||
|
static bool IsBackendInitialized(const USGBackend* Backend);
|
||||||
|
|
||||||
|
UFUNCTION(BlueprintCallable, Category="SenseGlove | Backend")
|
||||||
|
bool InitializeBackend(UPARAM(ref) USGBackend* Backend);
|
||||||
|
|
||||||
|
UFUNCTION(BlueprintCallable, Category="SenseGlove | Backend")
|
||||||
|
bool UninitializeBackend(UPARAM(ref) USGBackend* Backend);
|
||||||
|
};
|
||||||
@@ -0,0 +1,64 @@
|
|||||||
|
/**
|
||||||
|
* @file
|
||||||
|
*
|
||||||
|
* @author Mamadou Babaei <mamadou@senseglove.com>
|
||||||
|
*
|
||||||
|
* @section LICENSE
|
||||||
|
*
|
||||||
|
* (The MIT License)
|
||||||
|
*
|
||||||
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
|
*
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
* in the Software without restriction, including without limitation the rights
|
||||||
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
* copies of the Software, and to permit persons to whom the Software is
|
||||||
|
* furnished to do so, subject to the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included in all
|
||||||
|
* copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
* SOFTWARE.
|
||||||
|
*
|
||||||
|
* @section DESCRIPTION
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using UnrealBuildTool;
|
||||||
|
|
||||||
|
public class SenseGloveBackendKismet : ModuleRules
|
||||||
|
{
|
||||||
|
public SenseGloveBackendKismet(ReadOnlyTargetRules Target) : base(Target)
|
||||||
|
{
|
||||||
|
PCHUsage = ModuleRules.PCHUsageMode.UseExplicitOrSharedPCHs;
|
||||||
|
|
||||||
|
PublicDependencyModuleNames.AddRange(
|
||||||
|
new string[]
|
||||||
|
{
|
||||||
|
"Core",
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
PrivateDependencyModuleNames.AddRange(
|
||||||
|
new string[]
|
||||||
|
{
|
||||||
|
"CoreUObject",
|
||||||
|
"Engine",
|
||||||
|
"SenseGloveBackend",
|
||||||
|
"SenseGloveLog",
|
||||||
|
"SenseGloveKismet",
|
||||||
|
"SenseGloveTypes",
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* (The MIT License)
|
* (The MIT License)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2020 - 2023 SenseGlove
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* (The MIT License)
|
* (The MIT License)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2020 - 2023 SenseGlove
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* (The MIT License)
|
* (The MIT License)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2020 - 2023 SenseGlove
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* (The MIT License)
|
* (The MIT License)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2020 - 2023 SenseGlove
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* (The MIT License)
|
* (The MIT License)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2020 - 2023 SenseGlove
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* (The MIT License)
|
* (The MIT License)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2020 - 2023 SenseGlove
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* (The MIT License)
|
* (The MIT License)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2020 - 2023 SenseGlove
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* (The MIT License)
|
* (The MIT License)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2020 - 2023 SenseGlove
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* (The MIT License)
|
* (The MIT License)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2020 - 2023 SenseGlove
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* (The MIT License)
|
* (The MIT License)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2020 - 2023 SenseGlove
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* (The MIT License)
|
* (The MIT License)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2020 - 2023 SenseGlove
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
+1
-1
@@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* (The MIT License)
|
* (The MIT License)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2020 - 2023 SenseGlove
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* (The MIT License)
|
* (The MIT License)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2020 - 2023 SenseGlove
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* (The MIT License)
|
* (The MIT License)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2020 - 2023 SenseGlove
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* (The MIT License)
|
* (The MIT License)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2020 - 2023 SenseGlove
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* (The MIT License)
|
* (The MIT License)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2020 - 2023 SenseGlove
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
+1
-1
@@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* (The MIT License)
|
* (The MIT License)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2020 - 2023 SenseGlove
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
+1
-1
@@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* (The MIT License)
|
* (The MIT License)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2020 - 2023 SenseGlove
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* (The MIT License)
|
* (The MIT License)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2020 - 2023 SenseGlove
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* (The MIT License)
|
* (The MIT License)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2020 - 2023 SenseGlove
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* (The MIT License)
|
* (The MIT License)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2020 - 2023 SenseGlove
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
+1
-1
@@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* (The MIT License)
|
* (The MIT License)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2020 - 2023 SenseGlove
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
+1
-1
@@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* (The MIT License)
|
* (The MIT License)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2020 - 2023 SenseGlove
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
+1
-1
@@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* (The MIT License)
|
* (The MIT License)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2020 - 2023 SenseGlove
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
+1
-1
@@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* (The MIT License)
|
* (The MIT License)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2020 - 2023 SenseGlove
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
+1
-1
@@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* (The MIT License)
|
* (The MIT License)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2020 - 2023 SenseGlove
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
+1
-1
@@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* (The MIT License)
|
* (The MIT License)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2020 - 2023 SenseGlove
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* (The MIT License)
|
* (The MIT License)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2020 - 2023 SenseGlove
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* (The MIT License)
|
* (The MIT License)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2020 - 2023 SenseGlove
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* (The MIT License)
|
* (The MIT License)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2020 - 2023 SenseGlove
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
+1
-1
@@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* (The MIT License)
|
* (The MIT License)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2020 - 2023 SenseGlove
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
+1
-1
@@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* (The MIT License)
|
* (The MIT License)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2020 - 2023 SenseGlove
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* (The MIT License)
|
* (The MIT License)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2020 - 2023 SenseGlove
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
+1
-1
@@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* (The MIT License)
|
* (The MIT License)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2020 - 2023 SenseGlove
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* (The MIT License)
|
* (The MIT License)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2020 - 2023 SenseGlove
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* (The MIT License)
|
* (The MIT License)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2020 - 2023 SenseGlove
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* (The MIT License)
|
* (The MIT License)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2020 - 2023 SenseGlove
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* (The MIT License)
|
* (The MIT License)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2020 - 2023 SenseGlove
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* (The MIT License)
|
* (The MIT License)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2020 - 2023 SenseGlove
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
+1
-1
@@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* (The MIT License)
|
* (The MIT License)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2020 - 2023 SenseGlove
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* (The MIT License)
|
* (The MIT License)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2020 - 2023 SenseGlove
|
* Copyright (c) 2020 - 2024 SenseGlove
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user