Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions proto/decentraland/sdk/components/common/input_action.proto
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,11 @@ enum PointerEventType {
PET_DOWN = 1;
PET_HOVER_ENTER = 2;
PET_HOVER_LEAVE = 3;
PET_PROXIMITY_ENTER = 4;
PET_PROXIMITY_LEAVE = 5;
}

enum InteractionType {
CURSOR = 0;
PROXIMITY = 1;
}
2 changes: 2 additions & 0 deletions proto/decentraland/sdk/components/pointer_events.proto
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,13 @@ message PBPointerEvents {
optional bool show_feedback = 4; // enable or disable hover text and highlight (default true)
optional bool show_highlight = 5; // enable or disable hover highlight (default true)
optional float max_player_distance = 6; // range of interaction from the avatar's position (default 0)
optional uint32 priority = 7; // resolution order when multiple events overlap, higher wins (default 0)
}

message Entry {
common.PointerEventType event_type = 1; // the kind of interaction to detect
Info event_info = 2; // additional configuration for this detection
optional common.InteractionType interaction_type = 3; // the type of interaction source (default 0 == CURSOR)
}

repeated Entry pointer_events = 1; // the list of relevant events to detect
Expand Down
Loading