22 lines
498 B
C++
22 lines
498 B
C++
#pragma once
|
|
|
|
#include "interactable.h"
|
|
#include <deque>
|
|
#include <memory>
|
|
|
|
namespace VISEQ::APP{
|
|
|
|
enum Interaction {NONE, HOVER, CLICK, RIGHTCLICK, HOLD, RELEASE, PICKUP, DRAG, PUTDOWN, SELECT, DESELECT, CONNECT};
|
|
|
|
struct InteractionEvent{
|
|
std::shared_ptr<BASE::Interactable> item;
|
|
Interaction action;
|
|
};
|
|
|
|
inline bool operator==(const InteractionEvent& lhs, const InteractionEvent& rhs){
|
|
return lhs.item == rhs.item;
|
|
}
|
|
|
|
inline static std::deque<APP::InteractionEvent> event_queue;
|
|
}
|