@quenty/inputkeymaputils 8.3.0 → 8.3.2-canary.433.80025dc.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,26 @@
|
|
|
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.3.2-canary.433.80025dc.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/inputkeymaputils@8.3.1...@quenty/inputkeymaputils@8.3.2-canary.433.80025dc.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
|
+
|
|
18
|
+
## [8.3.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/inputkeymaputils@8.3.0...@quenty/inputkeymaputils@8.3.1) (2023-10-28)
|
|
19
|
+
|
|
20
|
+
**Note:** Version bump only for package @quenty/inputkeymaputils
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
6
26
|
# [8.3.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/inputkeymaputils@8.2.1...@quenty/inputkeymaputils@8.3.0) (2023-10-18)
|
|
7
27
|
|
|
8
28
|
**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.0",
|
|
3
|
+
"version": "8.3.2-canary.433.80025dc.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": "
|
|
30
|
-
"@quenty/brio": "
|
|
31
|
-
"@quenty/clienttranslator": "
|
|
32
|
-
"@quenty/enumutils": "
|
|
33
|
-
"@quenty/inputmode": "
|
|
34
|
-
"@quenty/loader": "
|
|
35
|
-
"@quenty/maid": "
|
|
36
|
-
"@quenty/observablecollection": "
|
|
37
|
-
"@quenty/pseudolocalize": "
|
|
38
|
-
"@quenty/rx": "
|
|
39
|
-
"@quenty/servicebag": "
|
|
40
|
-
"@quenty/statestack": "
|
|
41
|
-
"@quenty/string": "
|
|
42
|
-
"@quenty/table": "
|
|
43
|
-
"@quenty/valuebaseutils": "
|
|
44
|
-
"@quenty/valueobject": "
|
|
29
|
+
"@quenty/baseobject": "7.0.1-canary.433.80025dc.0",
|
|
30
|
+
"@quenty/brio": "9.1.2-canary.433.80025dc.0",
|
|
31
|
+
"@quenty/clienttranslator": "9.1.2-canary.433.80025dc.0",
|
|
32
|
+
"@quenty/enumutils": "3.1.0",
|
|
33
|
+
"@quenty/inputmode": "8.2.2-canary.433.80025dc.0",
|
|
34
|
+
"@quenty/loader": "7.0.1-canary.433.80025dc.0",
|
|
35
|
+
"@quenty/maid": "2.6.0",
|
|
36
|
+
"@quenty/observablecollection": "6.2.2-canary.433.80025dc.0",
|
|
37
|
+
"@quenty/pseudolocalize": "3.2.0",
|
|
38
|
+
"@quenty/rx": "8.1.2-canary.433.80025dc.0",
|
|
39
|
+
"@quenty/servicebag": "7.0.1-canary.433.80025dc.0",
|
|
40
|
+
"@quenty/statestack": "9.1.2-canary.433.80025dc.0",
|
|
41
|
+
"@quenty/string": "3.1.0",
|
|
42
|
+
"@quenty/table": "3.3.1-canary.433.80025dc.0",
|
|
43
|
+
"@quenty/valuebaseutils": "8.1.2-canary.433.80025dc.0",
|
|
44
|
+
"@quenty/valueobject": "8.1.2-canary.433.80025dc.0"
|
|
45
45
|
},
|
|
46
46
|
"publishConfig": {
|
|
47
47
|
"access": "public"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "80025dcd926765b502d322bb84e013b973409d8c"
|
|
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:
|
|
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)
|
|
@@ -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.
|
|
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.
|
|
46
|
+
local keyboard = ProximityPromptInputUtils.getFirstInputKeyCode(inputKeyMapList, InputModeTypes.KeyboardAndMouse)
|
|
47
47
|
local gamepad = ProximityPromptInputUtils.getFirstInputKeyCode(inputKeyMapList, InputModeTypes.Gamepads)
|
|
48
48
|
|
|
49
49
|
if keyboard then
|