Introduction of mouse.h for z-index mouse events

This commit is contained in:
Sebastian
2024-11-21 23:58:35 +01:00
parent bfc14d5f6e
commit a6b6ff1d16
8 changed files with 42 additions and 13 deletions
+1 -1
View File
@@ -378,7 +378,7 @@ namespace VISEQ::GRAPH {
for(auto n : nodes){
if(KEYS_PRESSED.ctrl && n->hovering()) state->hover_position = n->position;
}
BASE::Interactable::is_hovering = false;
BASE::Interactable::z_hovering = -1;
for(auto n : nodes){
n->update();
if(n->picked_up) drawNeighborLines(n, mouse_pos, camera);