mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-17 20:26:30 +01:00
OSC: fix return value for successful touch
This commit is contained in:
parent
1e95ccf07d
commit
2c40b46ca9
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue