Super simple events added. Seems to be a good way for handling interaction. Modified a few base classes.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user