Dragging and selecting works. Dragging the selection not yet.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user