Introduction of mouse.h for z-index mouse events
This commit is contained in:
+7
-4
@@ -1,6 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "draggable.h"
|
||||
#include "state.h"
|
||||
#include <memory>
|
||||
|
||||
namespace VISEQ::BASE {
|
||||
@@ -23,10 +24,12 @@ namespace VISEQ::BASE {
|
||||
}
|
||||
|
||||
void update() override{
|
||||
Draggable::update();
|
||||
if(pickedUp()) drag();
|
||||
if(released()) putDown();
|
||||
is_hovering = hovering();
|
||||
if(STATE != IState::DRAG_NODE){
|
||||
Draggable::update();
|
||||
if(pickedUp()) drag();
|
||||
if(released()) putDown();
|
||||
// is_hovering = hovering();
|
||||
}
|
||||
}
|
||||
|
||||
void putDown() override {
|
||||
|
||||
Reference in New Issue
Block a user