@antha/input 0.0.7 → 0.0.8

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.
@@ -92,7 +92,7 @@ function readPlayerBindings({ bindingsMap, activeBindingsMap, rawInputs, msSince
92
92
  }, check.isTruthy).flat();
93
93
  if (matchingInputs.length) {
94
94
  const value = matchingInputs.reduce((accum, matchingInput) => {
95
- return accum + matchingInput.inputValue;
95
+ return accum + Math.abs(matchingInput.inputValue);
96
96
  }, 0);
97
97
  const previousActiveBinding = activeBindingsMap?.[bindingName];
98
98
  const previousBindingDuration = previousActiveBinding?.holdDuration;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antha/input",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
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.7",
55
+ "@antha/engine": "^0.0.8",
56
56
  "element-vir": ">=26"
57
57
  },
58
58
  "engines": {