Super simple events added. Seems to be a good way for handling interaction. Modified a few base classes.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include "datatypes.h"
|
||||
#include "raylib.h"
|
||||
namespace VISEQ::BASE {
|
||||
|
||||
@@ -33,6 +34,10 @@ namespace VISEQ::BASE {
|
||||
virtual bool released() {
|
||||
return IsMouseButtonReleased(MOUSE_BUTTON_LEFT);
|
||||
}
|
||||
virtual GRAPH::GraphItemType getType() = 0;
|
||||
virtual void pickUp() = 0;
|
||||
virtual void drag() = 0;
|
||||
virtual void putDown() = 0;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user