diff --git a/src/interactable.h b/src/interactable.h new file mode 100644 index 0000000..3d64560 --- /dev/null +++ b/src/interactable.h @@ -0,0 +1,18 @@ +#pragma once + +namespace VISEQ::BASE { + + class Interactable{ + public: + Interactable() {} + virtual ~Interactable() {} + + virtual bool hovering(); + + virtual bool clicked(); + virtual bool held(); + virtual bool pickedUp(); + virtual bool released(); + }; + +} diff --git a/src/main.cpp b/src/main.cpp index 3bea790..f757ed2 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -292,7 +292,7 @@ int main(){ { DrawCircleV(node_menu_position, 30, VS_COLOR_LIGHTGREY); DrawCircleLines(node_menu_position.x, node_menu_position.y, 32, VS_COLOR_DARKGREY); - + } case InteractionState::DRAW_SELECTION: {