Skip to content

Instantly share code, notes, and snippets.

@timmeh4242
Created May 24, 2019 03:48
Show Gist options
  • Save timmeh4242/7151a26ec921c75030ee5ed92432e2d0 to your computer and use it in GitHub Desktop.
Save timmeh4242/7151a26ec921c75030ee5ed92432e2d0 to your computer and use it in GitHub Desktop.
public struct PointerEvent : IComponentData
{
public Entity Entity;
public PointerEventType EventType;
public PointerEvent(Entity entity, PointerEventType eventType)
{
Entity = entity;
EventType = eventType;
}
}
public enum PointerEventType
{
Enter,
Exit,
Down,
Up,
Click,
Drag,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment