Might be a better way to handle hovering, dragging and mouse interaction in general
This commit is contained in:
+2
-1
@@ -19,7 +19,7 @@ namespace VISEQ::APP {
|
||||
class AppManager{
|
||||
public:
|
||||
|
||||
AppManager() : sm(&gm, &mutex), mouse(std::make_shared<GraphManager>(gm)), ui(&sm, &gm) {}
|
||||
AppManager() : sm(&gm, &mutex), mouse(&gm), ui(&sm, &gm) {}
|
||||
|
||||
std::mutex mutex;
|
||||
|
||||
@@ -60,6 +60,7 @@ namespace VISEQ::APP {
|
||||
mutex.lock();
|
||||
updateMidiPorts();
|
||||
mutex.unlock();
|
||||
mouse.update();
|
||||
|
||||
if(KEYS_DOWN.ctrl && IsKeyPressed(KEY_C)){
|
||||
VEC_SPTR_Node selected_nodes = gm.getSelection();
|
||||
|
||||
Reference in New Issue
Block a user