Super simple events added. Seems to be a good way for handling interaction. Modified a few base classes.

This commit is contained in:
Sebastian
2024-11-24 03:08:06 +01:00
parent 62a5c53969
commit f04838bffa
14 changed files with 160 additions and 67 deletions
-9
View File
@@ -23,15 +23,6 @@ namespace VISEQ::BASE {
DrawLineV(position, MOD_MOUSE, (Color){229, 181, 103, 255});
}
void update() override{
if(STATE != IState::DRAG_NODE){
Draggable::update();
if(pickedUp()) drag();
if(released()) putDown();
// is_hovering = hovering();
}
}
void putDown() override {
connect();
Draggable::putDown();