@quenty/inputmode 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/inputmode@6.1.0...@quenty/inputmode@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/inputmode@6.0.1...@quenty/inputmode@6.1.0) (2022-08-22)
18
+
19
+ **Note:** Version bump only for package @quenty/inputmode
20
+
21
+
22
+
23
+
24
+
6
25
  ## [6.0.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/inputmode@6.0.0...@quenty/inputmode@6.0.1) (2022-08-16)
7
26
 
8
27
  **Note:** Version bump only for package @quenty/inputmode
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/inputmode",
3
- "version": "6.0.1",
3
+ "version": "6.2.0-canary.4096cd9.0",
4
4
  "description": "Trace input mode state and trigger changes correctly",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -25,14 +25,14 @@
25
25
  "Quenty"
26
26
  ],
27
27
  "dependencies": {
28
- "@quenty/loader": "^5.0.1",
29
- "@quenty/maid": "^2.4.0",
30
- "@quenty/signal": "^2.2.0",
31
- "@quenty/table": "^3.1.0",
32
- "@quenty/valueobject": "^6.0.1"
28
+ "@quenty/loader": "5.0.1",
29
+ "@quenty/maid": "2.4.0",
30
+ "@quenty/signal": "2.3.0",
31
+ "@quenty/table": "3.1.0",
32
+ "@quenty/valueobject": "6.2.0-canary.4096cd9.0"
33
33
  },
34
34
  "publishConfig": {
35
35
  "access": "public"
36
36
  },
37
- "gitHead": "340ac324c03fb3b844bbbe7ca57ee88874a724c9"
37
+ "gitHead": "4096cd94d2c38d382b7aafe8cb2fcb8bb340d051"
38
38
  }
@@ -7,6 +7,7 @@ local require = require(script.Parent.loader).load(script)
7
7
 
8
8
  local UserInputService = game:GetService("UserInputService")
9
9
  local GuiService = game:GetService("GuiService")
10
+ local RunService = game:GetService("RunService")
10
11
 
11
12
  local InputModeType = require("InputModeType")
12
13
  local Maid = require("Maid")
@@ -48,6 +49,13 @@ end
48
49
  function InputModeServiceClient:GetInputMode(inputModeType)
49
50
  assert(InputModeType.isInputModeType(inputModeType), "Bad inputModeType")
50
51
 
52
+ if not RunService:IsRunning() then
53
+ if not self._inputModes then
54
+ -- fake it till we make it!
55
+ return InputMode.new(inputModeType)
56
+ end
57
+ end
58
+
51
59
  if self._inputModes[inputModeType] then
52
60
  return self._inputModes[inputModeType]
53
61
  end