@quenty/inputkeymaputils 6.0.1 → 6.2.0-canary.4096cd9.0

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,25 @@
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
+ # [6.2.0-canary.4096cd9.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/inputkeymaputils@6.1.0...@quenty/inputkeymaputils@6.2.0-canary.4096cd9.0) (2022-09-08)
7
+
8
+
9
+ ### Features
10
+
11
+ * Support initialization of input modes ([ca75eb5](https://github.com/Quenty/NevermoreEngine/commit/ca75eb51100af22f8cf91c7c79545b35a9cc0eaf))
12
+
13
+
14
+
15
+
16
+
17
+ # [6.1.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/inputkeymaputils@6.0.1...@quenty/inputkeymaputils@6.1.0) (2022-08-22)
18
+
19
+ **Note:** Version bump only for package @quenty/inputkeymaputils
20
+
21
+
22
+
23
+
24
+
6
25
  ## [6.0.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/inputkeymaputils@6.0.0...@quenty/inputkeymaputils@6.0.1) (2022-08-16)
7
26
 
8
27
  **Note:** Version bump only for package @quenty/inputkeymaputils
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/inputkeymaputils",
3
- "version": "6.0.1",
3
+ "version": "6.2.0-canary.4096cd9.0",
4
4
  "description": "System to define rebindable key bindings and inputs for Roblox.",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -26,24 +26,24 @@
26
26
  "Quenty"
27
27
  ],
28
28
  "dependencies": {
29
- "@quenty/baseobject": "^5.1.1",
30
- "@quenty/brio": "^7.0.1",
31
- "@quenty/clienttranslator": "^7.0.1",
32
- "@quenty/inputmode": "^6.0.1",
33
- "@quenty/loader": "^5.0.1",
34
- "@quenty/maid": "^2.4.0",
35
- "@quenty/observablecollection": "^4.0.1",
36
- "@quenty/pseudolocalize": "^3.0.0",
37
- "@quenty/rx": "^6.0.1",
38
- "@quenty/servicebag": "^5.1.1",
39
- "@quenty/statestack": "^7.0.1",
40
- "@quenty/string": "^3.0.0",
41
- "@quenty/table": "^3.1.0",
42
- "@quenty/valuebaseutils": "^6.0.1",
43
- "@quenty/valueobject": "^6.0.1"
29
+ "@quenty/baseobject": "5.1.1",
30
+ "@quenty/brio": "7.2.0-canary.4096cd9.0",
31
+ "@quenty/clienttranslator": "7.2.0-canary.4096cd9.0",
32
+ "@quenty/inputmode": "6.2.0-canary.4096cd9.0",
33
+ "@quenty/loader": "5.0.1",
34
+ "@quenty/maid": "2.4.0",
35
+ "@quenty/observablecollection": "4.2.0-canary.4096cd9.0",
36
+ "@quenty/pseudolocalize": "3.0.0",
37
+ "@quenty/rx": "6.2.0-canary.4096cd9.0",
38
+ "@quenty/servicebag": "5.3.0-canary.4096cd9.0",
39
+ "@quenty/statestack": "7.2.0-canary.4096cd9.0",
40
+ "@quenty/string": "3.0.0",
41
+ "@quenty/table": "3.1.0",
42
+ "@quenty/valuebaseutils": "6.2.0-canary.4096cd9.0",
43
+ "@quenty/valueobject": "6.2.0-canary.4096cd9.0"
44
44
  },
45
45
  "publishConfig": {
46
46
  "access": "public"
47
47
  },
48
- "gitHead": "340ac324c03fb3b844bbbe7ca57ee88874a724c9"
48
+ "gitHead": "4096cd94d2c38d382b7aafe8cb2fcb8bb340d051"
49
49
  }
@@ -21,16 +21,14 @@ function InputKeyMapServiceClient:Init(serviceBag)
21
21
  -- Internal
22
22
  self._translator = self._serviceBag:GetService(require("InputKeyMapTranslator"))
23
23
  self._registryService = self._serviceBag:GetService(require("InputKeyMapRegistryServiceShared"))
24
+
25
+ self:_ensureLocalizationEntries()
24
26
  end
25
27
 
26
28
  function InputKeyMapServiceClient:FindInputKeyMapList(providerName, listName)
27
29
  return self._registryService:FindInputKeyMapList(providerName, listName)
28
30
  end
29
31
 
30
- function InputKeyMapServiceClient:Start()
31
- self:_ensureLocalizationEntries()
32
- end
33
-
34
32
  function InputKeyMapServiceClient:_ensureLocalizationEntries()
35
33
  self._maid:GiveTask(self._registryService:ObserveInputKeyMapListsBrio():Subscribe(function(brio)
36
34
  if brio:IsDead() then
@@ -78,12 +78,10 @@ function InputKeyMapListProvider:Init(serviceBag)
78
78
  self._serviceBag = assert(serviceBag, "No serviceBag")
79
79
  self._maid = Maid.new()
80
80
 
81
- self._inputMapLists = ObservableList.new()
82
- self._maid:GiveTask(self._inputMapLists)
81
+ self:_ensureDefaultsInit()
83
82
 
83
+ -- Only register after initialization
84
84
  self._maid:GiveTask(self._serviceBag:GetService(InputKeyMapRegistryServiceShared):RegisterProvider(self))
85
-
86
- self:_ensureDefaultsInit()
87
85
  end
88
86
 
89
87
  function InputKeyMapListProvider:Start()
@@ -156,6 +154,9 @@ end
156
154
 
157
155
  function InputKeyMapListProvider:_ensureDefaultsInit()
158
156
  if not self._inputKeyMapLists then
157
+ self._inputMapLists = ObservableList.new()
158
+ self._maid:GiveTask(self._inputMapLists)
159
+
159
160
  self._inputKeyMapLists = {}
160
161
 
161
162
  self._createDefaults(self, self._serviceBag)