diff --git a/proto/decentraland/sdk/components/common/input_action.proto b/proto/decentraland/sdk/components/common/input_action.proto index 824d9cf0..661dd58e 100644 --- a/proto/decentraland/sdk/components/common/input_action.proto +++ b/proto/decentraland/sdk/components/common/input_action.proto @@ -25,4 +25,7 @@ enum PointerEventType { PET_DOWN = 1; PET_HOVER_ENTER = 2; PET_HOVER_LEAVE = 3; + PET_DRAG_LOCKED = 4; + PET_DRAG = 5; + PET_DRAG_END = 6; } \ No newline at end of file diff --git a/proto/decentraland/sdk/components/primary_pointer_info.proto b/proto/decentraland/sdk/components/primary_pointer_info.proto new file mode 100644 index 00000000..a3dad570 --- /dev/null +++ b/proto/decentraland/sdk/components/primary_pointer_info.proto @@ -0,0 +1,25 @@ +syntax = "proto3"; +package decentraland.sdk.components; + +import "decentraland/common/vectors.proto"; +import "decentraland/sdk/components/common/id.proto"; +option (common.ecs_component_id) = 1209; + +message PBPrimaryPointerInfo { + optional PointerType pointer_type = 1; + // in pixels + optional decentraland.common.Vector2 screen_coordinates = 2; + // in pixels + optional decentraland.common.Vector2 screen_delta = 3; + // ray direction that can be used with the primary camera origin for + // raycasting from the cursor into the world + optional decentraland.common.Vector3 world_ray_direction = 4; +} + +enum PointerType { + POT_NONE = 0; + POT_MOUSE = 1; + POT_PAD = 2; + POT_TOUCH = 3; + POT_WAND = 4; +}