OSC: fix return value for successful touch
authorLen Ovens <len@ovenwerks.net>
Wed, 24 May 2017 20:58:49 +0000 (13:58 -0700)
committerLen Ovens <len@ovenwerks.net>
Wed, 24 May 2017 20:58:49 +0000 (13:58 -0700)
libs/surfaces/osc/osc.cc

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