app.hypergames.hypersdk 1.4.16 → 1.4.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [1.4.17](https://github.com/mvmhyper/hyper-sdk/compare/v1.4.16...v1.4.17) (2026-01-06)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* resolve Input System compilation error by using fully qualified names ([087fede](https://github.com/mvmhyper/hyper-sdk/commit/087feded9be5863a6ce95328d176869f421eee36))
|
|
7
|
+
|
|
1
8
|
## [1.4.16](https://github.com/mvmhyper/hyper-sdk/compare/v1.4.15...v1.4.16) (2026-01-06)
|
|
2
9
|
|
|
3
10
|
|
package/HyperLoader.unity
CHANGED
|
@@ -304,7 +304,7 @@ RectTransform:
|
|
|
304
304
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
|
305
305
|
m_AnchorMin: {x: 0, y: 1}
|
|
306
306
|
m_AnchorMax: {x: 0, y: 1}
|
|
307
|
-
m_AnchoredPosition: {x: 489.
|
|
307
|
+
m_AnchoredPosition: {x: 489.205, y: -280.1698}
|
|
308
308
|
m_SizeDelta: {x: 1044.9, y: 239.347}
|
|
309
309
|
m_Pivot: {x: 0.5, y: 0.5}
|
|
310
310
|
--- !u!114 &751153944
|
|
@@ -1092,7 +1092,7 @@ RectTransform:
|
|
|
1092
1092
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
|
1093
1093
|
m_AnchorMin: {x: 0, y: 1}
|
|
1094
1094
|
m_AnchorMax: {x: 0, y: 1}
|
|
1095
|
-
m_AnchoredPosition: {x: 489.
|
|
1095
|
+
m_AnchoredPosition: {x: 489.205, y: -133.2274}
|
|
1096
1096
|
m_SizeDelta: {x: 875, y: 54.5378}
|
|
1097
1097
|
m_Pivot: {x: 0.5, y: 0.5}
|
|
1098
1098
|
--- !u!1 &2874543288936963705
|
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
"GUID:6055be8ebefd69e48b49212b09b47b2f",
|
|
6
6
|
"GUID:caca889fed6088d40b22c2d7e2909c31",
|
|
7
7
|
"GUID:40ef3cd4de5c29f4eb9f3ee497e60aed",
|
|
8
|
-
"GUID:a701715b74d53214c9a994c9a64f14b6"
|
|
8
|
+
"GUID:a701715b74d53214c9a994c9a64f14b6",
|
|
9
|
+
"GUID:36e0cae4e139e0a4d869114979dcc37d"
|
|
9
10
|
],
|
|
10
11
|
"includePlatforms": [],
|
|
11
12
|
"excludePlatforms": [],
|
|
@@ -5,10 +5,6 @@ using TMPro;
|
|
|
5
5
|
using UnityEngine;
|
|
6
6
|
using UnityEngine.UI;
|
|
7
7
|
|
|
8
|
-
#if HYPER_INPUT_SYSTEM
|
|
9
|
-
using UnityEngine.InputSystem;
|
|
10
|
-
#endif
|
|
11
|
-
|
|
12
8
|
namespace Hyper.Internal
|
|
13
9
|
{
|
|
14
10
|
internal class StartingInstructionModal : MonoBehaviour
|
|
@@ -117,13 +113,13 @@ namespace Hyper.Internal
|
|
|
117
113
|
#elif HYPER_INPUT_SYSTEM
|
|
118
114
|
// New Input System
|
|
119
115
|
// Check mouse input (works in editor and desktop)
|
|
120
|
-
if (Mouse.current != null && Mouse.current.leftButton.wasPressedThisFrame)
|
|
116
|
+
if (UnityEngine.InputSystem.Mouse.current != null && UnityEngine.InputSystem.Mouse.current.leftButton.wasPressedThisFrame)
|
|
121
117
|
{
|
|
122
118
|
tapDetected = true;
|
|
123
119
|
}
|
|
124
120
|
|
|
125
121
|
// Check touch input (works on mobile and WebGL)
|
|
126
|
-
if (Touchscreen.current != null && Touchscreen.current.primaryTouch.press.wasPressedThisFrame)
|
|
122
|
+
if (UnityEngine.InputSystem.Touchscreen.current != null && UnityEngine.InputSystem.Touchscreen.current.primaryTouch.press.wasPressedThisFrame)
|
|
127
123
|
{
|
|
128
124
|
tapDetected = true;
|
|
129
125
|
}
|
|
@@ -196,16 +192,16 @@ namespace Hyper.Internal
|
|
|
196
192
|
#elif HYPER_INPUT_SYSTEM
|
|
197
193
|
// New Input System
|
|
198
194
|
// Check mouse input (works in editor and desktop)
|
|
199
|
-
if (Mouse.current != null)
|
|
195
|
+
if (UnityEngine.InputSystem.Mouse.current != null)
|
|
200
196
|
{
|
|
201
|
-
if (Mouse.current.leftButton.wasPressedThisFrame)
|
|
197
|
+
if (UnityEngine.InputSystem.Mouse.current.leftButton.wasPressedThisFrame)
|
|
202
198
|
{
|
|
203
|
-
_swipeStartPosition = Mouse.current.position.ReadValue();
|
|
199
|
+
_swipeStartPosition = UnityEngine.InputSystem.Mouse.current.position.ReadValue();
|
|
204
200
|
_isTrackingSwipe = true;
|
|
205
201
|
}
|
|
206
|
-
else if (Mouse.current.leftButton.isPressed && _isTrackingSwipe)
|
|
202
|
+
else if (UnityEngine.InputSystem.Mouse.current.leftButton.isPressed && _isTrackingSwipe)
|
|
207
203
|
{
|
|
208
|
-
currentPosition = Mouse.current.position.ReadValue();
|
|
204
|
+
currentPosition = UnityEngine.InputSystem.Mouse.current.position.ReadValue();
|
|
209
205
|
Vector2 delta = currentPosition - _swipeStartPosition;
|
|
210
206
|
|
|
211
207
|
if (IsSwipeDirectionValid(delta))
|
|
@@ -214,16 +210,16 @@ namespace Hyper.Internal
|
|
|
214
210
|
_isTrackingSwipe = false;
|
|
215
211
|
}
|
|
216
212
|
}
|
|
217
|
-
else if (Mouse.current.leftButton.wasReleasedThisFrame)
|
|
213
|
+
else if (UnityEngine.InputSystem.Mouse.current.leftButton.wasReleasedThisFrame)
|
|
218
214
|
{
|
|
219
215
|
_isTrackingSwipe = false;
|
|
220
216
|
}
|
|
221
217
|
}
|
|
222
218
|
|
|
223
219
|
// Check touch input (works on mobile and WebGL)
|
|
224
|
-
if (Touchscreen.current != null)
|
|
220
|
+
if (UnityEngine.InputSystem.Touchscreen.current != null)
|
|
225
221
|
{
|
|
226
|
-
var touch = Touchscreen.current.primaryTouch;
|
|
222
|
+
var touch = UnityEngine.InputSystem.Touchscreen.current.primaryTouch;
|
|
227
223
|
|
|
228
224
|
if (touch.press.wasPressedThisFrame)
|
|
229
225
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "app.hypergames.hypersdk",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.17",
|
|
4
4
|
"displayName": "HyperSDK",
|
|
5
5
|
"description": "Official Unity SDK for Hyper: multiplayer battles, leaderboards, deterministic RNG, session management, tutorials, and WebGL optimizations for production-ready games.",
|
|
6
6
|
"unity": "6000.0",
|