@quenty/inputkeymaputils 8.3.1 → 8.4.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,18 @@
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
+ # [8.4.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/inputkeymaputils@8.3.1...@quenty/inputkeymaputils@8.4.0) (2023-12-14)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * InputKeyMapTranslator was passing in bad initial language ([030a1ea](https://github.com/Quenty/NevermoreEngine/commit/030a1eabfde882f7b0fc787f86cb6bea845a1300))
12
+ * Proximity prompt utils assumes keyboard and mouse to be more consistent in behavior with other input hints ([a87d13b](https://github.com/Quenty/NevermoreEngine/commit/a87d13bd7527f43aaa59298b1c65e0f84628f9cf))
13
+
14
+
15
+
16
+
17
+
6
18
  ## [8.3.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/inputkeymaputils@8.3.0...@quenty/inputkeymaputils@8.3.1) (2023-10-28)
7
19
 
8
20
  **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": "8.3.1",
3
+ "version": "8.4.0",
4
4
  "description": "System to define rebindable key bindings and inputs for Roblox.",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -26,25 +26,25 @@
26
26
  "Quenty"
27
27
  ],
28
28
  "dependencies": {
29
- "@quenty/baseobject": "^7.0.0",
30
- "@quenty/brio": "^9.1.1",
31
- "@quenty/clienttranslator": "^9.1.1",
29
+ "@quenty/baseobject": "^7.1.0",
30
+ "@quenty/brio": "^9.2.0",
31
+ "@quenty/clienttranslator": "^9.2.0",
32
32
  "@quenty/enumutils": "^3.1.0",
33
- "@quenty/inputmode": "^8.2.1",
34
- "@quenty/loader": "^7.0.0",
33
+ "@quenty/inputmode": "^8.3.0",
34
+ "@quenty/loader": "^7.1.0",
35
35
  "@quenty/maid": "^2.6.0",
36
- "@quenty/observablecollection": "^6.2.1",
36
+ "@quenty/observablecollection": "^6.3.0",
37
37
  "@quenty/pseudolocalize": "^3.2.0",
38
- "@quenty/rx": "^8.1.1",
39
- "@quenty/servicebag": "^7.0.0",
40
- "@quenty/statestack": "^9.1.1",
38
+ "@quenty/rx": "^8.2.0",
39
+ "@quenty/servicebag": "^7.1.0",
40
+ "@quenty/statestack": "^9.2.0",
41
41
  "@quenty/string": "^3.1.0",
42
- "@quenty/table": "^3.3.0",
43
- "@quenty/valuebaseutils": "^8.1.1",
44
- "@quenty/valueobject": "^8.1.1"
42
+ "@quenty/table": "^3.4.0",
43
+ "@quenty/valuebaseutils": "^8.2.0",
44
+ "@quenty/valueobject": "^8.2.0"
45
45
  },
46
46
  "publishConfig": {
47
47
  "access": "public"
48
48
  },
49
- "gitHead": "440aca7ce2b50b74317ee05fdc0b8d1e58001af3"
49
+ "gitHead": "2c2dbbc0cb2fbb46b4f3270c559c63890fe18b26"
50
50
  }
@@ -384,14 +384,9 @@ function InputKeyMapList:_ensureInit()
384
384
  return self._inputTypesForBinding
385
385
  end
386
386
 
387
- self._inputTypesForBinding = ObservableCountingMap.new()
388
- self._maid:GiveTask(self._inputTypesForBinding)
389
-
390
- self._isTapInWorld = StateStack.new(false)
391
- self._maid:GiveTask(self._isTapInWorld)
392
-
393
- self._isRobloxTouchButton = StateStack.new(false)
394
- self._maid:GiveTask(self._isRobloxTouchButton)
387
+ self._inputTypesForBinding = self._maid:Add(ObservableCountingMap.new())
388
+ self._isTapInWorld = self._maid:Add(StateStack.new(false, "boolean"))
389
+ self._isRobloxTouchButton = self._maid:Add(StateStack.new(false, "boolean"))
395
390
 
396
391
  -- Listen
397
392
  self._maid:GiveTask(self._inputModeTypeToInputKeyMap:ObserveValuesBrio():Subscribe(function(brio)
@@ -4,4 +4,4 @@
4
4
 
5
5
  local require = require(script.Parent.loader).load(script)
6
6
 
7
- return require("JSONTranslator").new("en", "InputKeyMapTranslator", {})
7
+ return require("JSONTranslator").new("InputKeyMapTranslator", "en", {})
@@ -24,7 +24,7 @@ function ProximityPromptInputUtils.newInputKeyMapFromPrompt(prompt)
24
24
 
25
25
  return InputKeyMapList.new("custom", {
26
26
  InputKeyMap.new(InputModeTypes.Gamepads, { prompt.GamepadKeyCode });
27
- InputKeyMap.new(InputModeTypes.Keyboard, { prompt.KeyboardKeyCode });
27
+ InputKeyMap.new(InputModeTypes.KeyboardAndMouse, { prompt.KeyboardKeyCode });
28
28
  InputKeyMap.new(InputModeTypes.Touch, { "Tap" });
29
29
  }, {
30
30
  bindingName = prompt.ActionText;
@@ -43,7 +43,7 @@ function ProximityPromptInputUtils.configurePromptFromInputKeyMap(prompt, inputK
43
43
  assert(typeof(prompt) == "Instance", "Bad prompt")
44
44
  assert(type(inputKeyMapList) == "table", "Bad inputKeyMapList")
45
45
 
46
- local keyboard = ProximityPromptInputUtils.getFirstInputKeyCode(inputKeyMapList, InputModeTypes.Keyboard)
46
+ local keyboard = ProximityPromptInputUtils.getFirstInputKeyCode(inputKeyMapList, InputModeTypes.KeyboardAndMouse)
47
47
  local gamepad = ProximityPromptInputUtils.getFirstInputKeyCode(inputKeyMapList, InputModeTypes.Gamepads)
48
48
 
49
49
  if keyboard then