From 2c5807385949986839397813abfb356c38f46d26 Mon Sep 17 00:00:00 2001 From: Krisjanis Rijnieks Date: Sat, 10 May 2014 01:23:04 +0200 Subject: [PATCH] Add bool isDragged bethod to base joint class --- src/ofxBaseJoint.cpp | 5 +++++ src/ofxBaseJoint.h | 1 + 2 files changed, 6 insertions(+) diff --git a/src/ofxBaseJoint.cpp b/src/ofxBaseJoint.cpp index 4afb8d0..4e1439e 100644 --- a/src/ofxBaseJoint.cpp +++ b/src/ofxBaseJoint.cpp @@ -40,6 +40,11 @@ void ofxBaseJoint::stopDrag() dragging = false; } +bool ofxBaseJoint::isDragged() +{ + return dragging; +} + void ofxBaseJoint::setDefaultColors() { fillColor = ofColor(0,255,255); diff --git a/src/ofxBaseJoint.h b/src/ofxBaseJoint.h index cdb48b0..3f3d0e6 100644 --- a/src/ofxBaseJoint.h +++ b/src/ofxBaseJoint.h @@ -18,6 +18,7 @@ public: void mouseDragged(int x, int y, int button); void startDrag(); void stopDrag(); + bool isDragged(); virtual void update(){}; virtual void draw(){};