Super simple events added. Seems to be a good way for handling interaction. Modified a few base classes.

This commit is contained in:
Sebastian
2024-11-24 03:08:06 +01:00
parent 62a5c53969
commit f04838bffa
14 changed files with 160 additions and 67 deletions
+16
View File
@@ -0,0 +1,16 @@
#pragma once
#include "interactable.h"
#include <memory>
#include <queue>
namespace VISEQ::APP{
enum Interaction {HOVER, CLICK, HOLD, RELEASE, PICKUP, DRAG, PUTDOWN};
struct InteractionEvent{
std::shared_ptr<BASE::Interactable> item;
Interaction action;
};
inline static std::queue<VISEQ::APP::InteractionEvent> event_queue;
}