@dcl/protocol 1.0.0-4114477251.commit-ccb88d6 → 1.0.0-4177217338.commit-c85f02c

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcl/protocol",
3
- "version": "1.0.0-4114477251.commit-ccb88d6",
3
+ "version": "1.0.0-4177217338.commit-c85f02c",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -26,5 +26,5 @@
26
26
  "out-js",
27
27
  "public"
28
28
  ],
29
- "commit": "ccb88d679f20c0e22840c324879d7b2535f6c9a6"
29
+ "commit": "c85f02cd86dbc48a1b2f3aac939baf38eb0ef6ff"
30
30
  }
@@ -9,17 +9,11 @@ import "decentraland/sdk/components/raycast_result.proto";
9
9
 
10
10
  option (common.ecs_component_id) = 1063;
11
11
 
12
- // the renderer will set this component to the root entity once per frame with all the events
12
+ // renderer append a new object of this in each command, there can be many commands per frames
13
13
  message PBPointerEventsResult {
14
- // a list of the last N pointer commands (from the engine)
15
- repeated PointerCommand commands = 1;
16
-
17
- // this message represents a pointer event, used both for UP and DOWN actions
18
- message PointerCommand {
19
- common.InputAction button = 1; // identifier of the input
20
- RaycastHit hit = 2;
21
- PointerEventType state = 4;
22
- int32 timestamp = 5; // could be a Lamport timestamp
23
- optional float analog = 6; // if the input is analog then we store it here
24
- }
14
+ common.InputAction button = 1; // identifier of the input
15
+ RaycastHit hit = 2;
16
+ PointerEventType state = 4;
17
+ int32 timestamp = 5; // could be a Lamport timestamp
18
+ optional float analog = 6; // if the input is analog then we store it here
25
19
  }