MCPcopy Create free account
hub / github.com/YCAMInterlab/Duration / mouseDragged

Method mouseDragged

DurationRemote/src/testApp.cpp:246–254  ·  view source on GitHub ↗

--------------------------------------------------------------

Source from the content-addressed store, hash-verified

244
245//--------------------------------------------------------------
246void testApp::mouseDragged(int x, int y, int button){
247 if(draggingSeek){
248 seekPercent = ofMap(x, seekRect.getMinX(), seekRect.getMaxX(), 0, 1.0, true);
249 clearArgs();
250 commandInput->setTextString("/duration/seektoposition");
251 arg1->setTextString(ofToString(seekPercent, 4));
252 sendCurrentCommand();
253 }
254}
255
256//--------------------------------------------------------------
257void testApp::mousePressed(int x, int y, int button){

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected