Super simple events added. Seems to be a good way for handling interaction. Modified a few base classes.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user