@dcl/ecs 7.1.18-5149174868.commit-b3b683f → 7.1.18-5157707330.commit-091fce4

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.
@@ -140,7 +140,8 @@ export function createInputSystem(engine) {
140
140
  }
141
141
  else {
142
142
  for (const command of globalState.thisFrameCommands) {
143
- if (command.button === inputAction && command.state === pointerEventType) {
143
+ if ((command.button === inputAction || inputAction === 3 /* InputAction.IA_ANY */) &&
144
+ command.state === pointerEventType) {
144
145
  return command;
145
146
  }
146
147
  }
@@ -171,7 +172,8 @@ export function createInputSystem(engine) {
171
172
  }
172
173
  else {
173
174
  for (const command of globalState.thisFrameCommands) {
174
- if (command.button === inputAction && command.state === pointerEventType) {
175
+ if ((command.button === inputAction || inputAction === 3 /* InputAction.IA_ANY */) &&
176
+ command.state === pointerEventType) {
175
177
  return true;
176
178
  }
177
179
  }
@@ -166,7 +166,8 @@ function createInputSystem(engine) {
166
166
  }
167
167
  else {
168
168
  for (const command of globalState.thisFrameCommands) {
169
- if (command.button === inputAction && command.state === pointerEventType) {
169
+ if ((command.button === inputAction || inputAction === 3 /* InputAction.IA_ANY */) &&
170
+ command.state === pointerEventType) {
170
171
  return command;
171
172
  }
172
173
  }
@@ -197,7 +198,8 @@ function createInputSystem(engine) {
197
198
  }
198
199
  else {
199
200
  for (const command of globalState.thisFrameCommands) {
200
- if (command.button === inputAction && command.state === pointerEventType) {
201
+ if ((command.button === inputAction || inputAction === 3 /* InputAction.IA_ANY */) &&
202
+ command.state === pointerEventType) {
201
203
  return true;
202
204
  }
203
205
  }
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@dcl/ecs",
3
3
  "description": "Decentraland ECS",
4
- "version": "7.1.18-5149174868.commit-b3b683f",
4
+ "version": "7.1.18-5157707330.commit-091fce4",
5
5
  "author": "DCL",
6
6
  "bugs": "https://github.com/decentraland/ecs/issues",
7
7
  "dependencies": {
8
- "@dcl/js-runtime": "7.1.18-5149174868.commit-b3b683f"
8
+ "@dcl/js-runtime": "7.1.18-5157707330.commit-091fce4"
9
9
  },
10
10
  "files": [
11
11
  "dist",
@@ -35,5 +35,5 @@
35
35
  },
36
36
  "types": "./dist/index.d.ts",
37
37
  "typings": "./dist/index.d.ts",
38
- "commit": "b3b683f490ff67c8938c5c2b0286226927018c36"
38
+ "commit": "091fce4615f18681efcef4556b5fc76652a79639"
39
39
  }