Files
viseq/src/interaction-event.h
T

22 lines
498 B
C++
Raw Normal View History

#pragma once
#include "interactable.h"
#include <deque>
#include <memory>
namespace VISEQ::APP{
2024-12-05 23:39:01 +01:00
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;
}