File tree 2 files changed +28
-0
lines changed
proto/decentraland/sdk/components 2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -25,4 +25,7 @@ enum PointerEventType {
25
25
PET_DOWN = 1 ;
26
26
PET_HOVER_ENTER = 2 ;
27
27
PET_HOVER_LEAVE = 3 ;
28
+ PET_DRAG_LOCKED = 4 ;
29
+ PET_DRAG = 5 ;
30
+ PET_DRAG_END = 6 ;
28
31
}
Original file line number Diff line number Diff line change
1
+ syntax = "proto3" ;
2
+ package decentraland.sdk.components ;
3
+
4
+ import "decentraland/common/vectors.proto" ;
5
+ import "decentraland/sdk/components/common/id.proto" ;
6
+ option (common.ecs_component_id ) = 1209 ;
7
+
8
+ message PBPrimaryPointerInfo {
9
+ optional PointerType pointer_type = 1 ;
10
+ // in pixels
11
+ optional decentraland.common.Vector2 screen_coordinates = 2 ;
12
+ // in pixels
13
+ optional decentraland.common.Vector2 screen_delta = 3 ;
14
+ // ray direction that can be used with the primary camera origin for
15
+ // raycasting from the cursor into the world
16
+ optional decentraland.common.Vector3 world_ray_direction = 4 ;
17
+ }
18
+
19
+ enum PointerType {
20
+ POT_NONE = 0 ;
21
+ POT_MOUSE = 1 ;
22
+ POT_PAD = 2 ;
23
+ POT_TOUCH = 3 ;
24
+ POT_WAND = 4 ;
25
+ }
You can’t perform that action at this time.
0 commit comments