@antha/input 0.0.6 → 0.0.7
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.
|
@@ -31,7 +31,8 @@ export declare enum MenuNavBinding {
|
|
|
31
31
|
/** Navigate to the next section in a menu. */
|
|
32
32
|
MenuSectionNext = "menu-section-next",
|
|
33
33
|
/** Navigate to the previous section in a menu. */
|
|
34
|
-
MenuSectionPrevious = "menu-section-previous"
|
|
34
|
+
MenuSectionPrevious = "menu-section-previous",
|
|
35
|
+
OpenPauseMenu = "open-pause-menu"
|
|
35
36
|
}
|
|
36
37
|
/**
|
|
37
38
|
* Default menu nav bindings for {@link AnthaMenuNavMod}.
|
|
@@ -38,6 +38,7 @@ export var MenuNavBinding;
|
|
|
38
38
|
MenuNavBinding["MenuSectionNext"] = "menu-section-next";
|
|
39
39
|
/** Navigate to the previous section in a menu. */
|
|
40
40
|
MenuNavBinding["MenuSectionPrevious"] = "menu-section-previous";
|
|
41
|
+
MenuNavBinding["OpenPauseMenu"] = "open-pause-menu";
|
|
41
42
|
})(MenuNavBinding || (MenuNavBinding = {}));
|
|
42
43
|
/**
|
|
43
44
|
* Default menu nav bindings for {@link AnthaMenuNavMod}.
|
|
@@ -201,6 +202,18 @@ export const defaultMenuNavBindings = {
|
|
|
201
202
|
inputName: KnownInput.L1,
|
|
202
203
|
},
|
|
203
204
|
],
|
|
205
|
+
[MenuNavBinding.OpenPauseMenu]: [
|
|
206
|
+
{
|
|
207
|
+
deviceKey: 'keyboard',
|
|
208
|
+
direction: InputDirection.Positive,
|
|
209
|
+
inputName: 'button-Escape',
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
deviceKey: AnyGamepad,
|
|
213
|
+
direction: InputDirection.Positive,
|
|
214
|
+
inputName: KnownInput.Start,
|
|
215
|
+
},
|
|
216
|
+
],
|
|
204
217
|
};
|
|
205
218
|
/** @category Internal */
|
|
206
219
|
export const defaultMenuNavOptions = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antha/input",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"description": "An Antha mod for handling inputs.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vir",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"istanbul-smart-text-reporter": "^1.1.5"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
|
-
"@antha/engine": "^0.0.
|
|
55
|
+
"@antha/engine": "^0.0.7",
|
|
56
56
|
"element-vir": ">=26"
|
|
57
57
|
},
|
|
58
58
|
"engines": {
|