2024-11-24 03:08:06 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "interactable.h"
|
2024-11-25 00:53:10 +01:00
|
|
|
#include <deque>
|
2024-11-24 03:08:06 +01:00
|
|
|
#include <memory>
|
2024-11-25 00:53:10 +01:00
|
|
|
|
2024-11-24 03:08:06 +01:00
|
|
|
namespace VISEQ::APP{
|
|
|
|
|
|
2024-11-26 01:58:09 +01:00
|
|
|
enum Interaction {NONE, HOVER, CLICK, HOLD, RELEASE, PICKUP, DRAG, PUTDOWN, SELECT, DESELECT};
|
2024-11-24 03:08:06 +01:00
|
|
|
|
|
|
|
|
struct InteractionEvent{
|
|
|
|
|
std::shared_ptr<BASE::Interactable> item;
|
|
|
|
|
Interaction action;
|
|
|
|
|
};
|
|
|
|
|
|
2024-11-25 00:53:10 +01:00
|
|
|
inline static std::deque<VISEQ::APP::InteractionEvent> event_queue;
|
2024-11-24 03:08:06 +01:00
|
|
|
}
|