-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
syntax = "proto3"; | ||
package decentraland.sdk.components; | ||
|
||
import "decentraland/sdk/components/common/id.proto"; | ||
option (common.ecs_component_id) = 1209; | ||
|
||
import "decentraland/common/vectors.proto"; | ||
|
||
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; | ||
} |