OSC: fix return value for successful touch

This commit is contained in:
Len Ovens 2017-05-24 13:58:49 -07:00
parent 1e95ccf07d
commit 2c40b46ca9

View file

@ -2343,10 +2343,12 @@ OSC::touch_detect (const char *path, lo_arg **argv, int argc, lo_message msg)
//start touch //start touch
if (control->automation_state() == Touch && !control->touching ()) { if (control->automation_state() == Touch && !control->touching ()) {
control->start_touch (control->session().transport_frame()); control->start_touch (control->session().transport_frame());
ret = 0;
} }
} else { } else {
// end touch // end touch
control->stop_touch (true, control->session().transport_frame()); control->stop_touch (true, control->session().transport_frame());
ret = 0;
} }
// just in case some crazy surface starts sending control values before touch // just in case some crazy surface starts sending control values before touch
FakeTouchMap::iterator x = _touch_timeout.find(control); FakeTouchMap::iterator x = _touch_timeout.find(control);