connecting and moving works. midi out also

This commit is contained in:
Sebastian
2024-10-13 15:07:19 +02:00
parent 1e7eacb893
commit 313bf767c6
3 changed files with 43 additions and 19 deletions
+12 -1
View File
@@ -17,14 +17,25 @@ class Node : public Movable{
float radius;
int id;
bool picked_up = false;
bool hover_move = false;
bool hover_connect = false;
bool connecting = false;
int next = 0;
int midi_out = 0;
int midi_note = 0;
int midi_cc = 0;
std::vector<Node*> connections;
Node* get_next(){
next = (next+1) % connections.size();
return connections[next];
}
void draw(Vec2D<float> *mouse) {
if(!hover_move) DrawCircle(position.x, position.y, radius, (Color){180, 210, 115, 255});
if(hover_move) DrawCircle(position.x, position.y, radius, (Color){108, 153, 187, 255});