Dragging and selecting works. Dragging the selection not yet.

This commit is contained in:
Sebastian
2024-11-25 00:53:10 +01:00
parent f04838bffa
commit 9c0aac8618
9 changed files with 76 additions and 53 deletions
+4 -3
View File
@@ -1,16 +1,17 @@
#pragma once
#include "interactable.h"
#include <deque>
#include <memory>
#include <queue>
namespace VISEQ::APP{
enum Interaction {HOVER, CLICK, HOLD, RELEASE, PICKUP, DRAG, PUTDOWN};
enum Interaction {NONE, HOVER, CLICK, HOLD, RELEASE, PICKUP, DRAG, PUTDOWN, SELECTED};
struct InteractionEvent{
std::shared_ptr<BASE::Interactable> item;
Interaction action;
};
inline static std::queue<VISEQ::APP::InteractionEvent> event_queue;
inline static std::deque<VISEQ::APP::InteractionEvent> event_queue;
}