@quenty/inputmode 13.18.2 → 13.18.3
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
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [13.18.3](https://github.com/Quenty/NevermoreEngine/compare/@quenty/inputmode@13.18.2...@quenty/inputmode@13.18.3) (2025-04-10)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @quenty/inputmode
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [13.18.2](https://github.com/Quenty/NevermoreEngine/compare/@quenty/inputmode@13.18.0...@quenty/inputmode@13.18.2) (2025-04-07)
|
|
7
15
|
|
|
8
16
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/inputmode",
|
|
3
|
-
"version": "13.18.
|
|
3
|
+
"version": "13.18.3",
|
|
4
4
|
"description": "Trace input mode state and trigger changes correctly",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -25,17 +25,17 @@
|
|
|
25
25
|
"Quenty"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@quenty/ducktype": "^5.8.
|
|
29
|
-
"@quenty/loader": "^10.8.
|
|
30
|
-
"@quenty/maid": "^3.4.
|
|
31
|
-
"@quenty/rx": "^13.17.
|
|
32
|
-
"@quenty/servicebag": "^11.11.
|
|
33
|
-
"@quenty/signal": "^7.10.
|
|
34
|
-
"@quenty/table": "^3.7.
|
|
35
|
-
"@quenty/valueobject": "^13.17.
|
|
28
|
+
"@quenty/ducktype": "^5.8.4",
|
|
29
|
+
"@quenty/loader": "^10.8.3",
|
|
30
|
+
"@quenty/maid": "^3.4.3",
|
|
31
|
+
"@quenty/rx": "^13.17.3",
|
|
32
|
+
"@quenty/servicebag": "^11.11.4",
|
|
33
|
+
"@quenty/signal": "^7.10.3",
|
|
34
|
+
"@quenty/table": "^3.7.4",
|
|
35
|
+
"@quenty/valueobject": "^13.17.3"
|
|
36
36
|
},
|
|
37
37
|
"publishConfig": {
|
|
38
38
|
"access": "public"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "b06c070ae91d5dab7bd8de6e290ad2caabb15d8f"
|
|
41
41
|
}
|
package/src/Client/InputMode.lua
CHANGED
|
@@ -30,7 +30,7 @@ export type InputModeServiceClient = typeof(setmetatable(
|
|
|
30
30
|
_lastMousePosition: Vector3?,
|
|
31
31
|
_serviceBag: _ServiceBag.ServiceBag,
|
|
32
32
|
},
|
|
33
|
-
{ __index = InputModeServiceClient }
|
|
33
|
+
{} :: typeof({ __index = InputModeServiceClient })
|
|
34
34
|
))
|
|
35
35
|
|
|
36
36
|
function InputModeServiceClient.Init(self: InputModeServiceClient, serviceBag: _ServiceBag.ServiceBag)
|
|
@@ -36,7 +36,7 @@ export type InputModeTypeSelector = typeof(setmetatable(
|
|
|
36
36
|
Value: InputModeType.InputModeType?,
|
|
37
37
|
Changed: _Signal.Signal<InputModeType.InputModeType, InputModeType.InputModeType>,
|
|
38
38
|
},
|
|
39
|
-
{ __index = InputModeTypeSelector }
|
|
39
|
+
{} :: typeof({ __index = InputModeTypeSelector })
|
|
40
40
|
))
|
|
41
41
|
|
|
42
42
|
--[=[
|
|
@@ -208,7 +208,7 @@ function InputModeTypeSelector.Bind(
|
|
|
208
208
|
updateBindFunction: (InputModeType.InputModeType, Maid.Maid) -> ()
|
|
209
209
|
): InputModeTypeSelector
|
|
210
210
|
local maid = Maid.new()
|
|
211
|
-
self._maid[updateBindFunction
|
|
211
|
+
self._maid[updateBindFunction] = maid
|
|
212
212
|
|
|
213
213
|
local function onChange(newMode, _)
|
|
214
214
|
maid._modeMaid = nil
|
|
@@ -239,7 +239,7 @@ function InputModeTypeSelector.RemoveInputModeType(
|
|
|
239
239
|
)
|
|
240
240
|
assert(InputModeType.isInputModeType(inputModeType), "Bad inputModeType")
|
|
241
241
|
|
|
242
|
-
if not self._maid[inputModeType
|
|
242
|
+
if not self._maid[inputModeType] then
|
|
243
243
|
return
|
|
244
244
|
end
|
|
245
245
|
|
|
@@ -250,7 +250,7 @@ function InputModeTypeSelector.RemoveInputModeType(
|
|
|
250
250
|
warn("[InputModeTypeSelector] - Failed to find inputModeType")
|
|
251
251
|
end
|
|
252
252
|
|
|
253
|
-
self._maid[inputModeType
|
|
253
|
+
self._maid[inputModeType] = nil
|
|
254
254
|
|
|
255
255
|
if self._activeModeType.Value == inputModeType then
|
|
256
256
|
self:_pickNewInputMode()
|
|
@@ -264,13 +264,13 @@ end
|
|
|
264
264
|
function InputModeTypeSelector.AddInputModeType(self: InputModeTypeSelector, inputModeType: InputModeType.InputModeType)
|
|
265
265
|
assert(InputModeType.isInputModeType(inputModeType), "Bad inputModeType")
|
|
266
266
|
|
|
267
|
-
if self._maid[inputModeType
|
|
267
|
+
if self._maid[inputModeType] then
|
|
268
268
|
return
|
|
269
269
|
end
|
|
270
270
|
|
|
271
271
|
table.insert(self._inputModeTypeList, inputModeType)
|
|
272
272
|
local inputMode = self._inputModeServiceClient:GetInputMode(inputModeType)
|
|
273
|
-
self._maid[inputModeType
|
|
273
|
+
self._maid[inputModeType] = inputMode.Enabled:Connect(function()
|
|
274
274
|
self._activeModeType.Value = inputModeType
|
|
275
275
|
end)
|
|
276
276
|
|