Introduction of mouse.h for z-index mouse events

This commit is contained in:
Sebastian
2024-11-21 23:58:35 +01:00
parent bfc14d5f6e
commit a6b6ff1d16
8 changed files with 42 additions and 13 deletions
+7 -4
View File
@@ -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 {