Here is a working example patch.
best wishes, ingo
On 29/07/17 02:00, Dan Wilcox wrote:
I don't think that does it as g_editor.c looks like the underlying logic for editing a patch (add, remove, move, etc) and doesn't forward the mouse events to the objects themselves.
On Jul 29, 2017, at 1:04 AM, Roman Haefeli <reduzent@gmail.com mailto:reduzent@gmail.com> wrote:
Yeah, I couldn't figure out what this function is useful for and stopped digging further. But reading it made me confident that 'click' might doesn't do what I want. In the meantime, Ingo mentioned 'mouse'. I guess the corresponding code is found in g_editor.c:
void canvas_mouse(t_canvas *x, t_floatarg xpos, t_floatarg ypos, t_floatarg which, t_floatarg mod) { canvas_doclick(x, xpos, ypos, which, mod, 1); }
Roman
Dan Wilcox @danomatika http://twitter.com/danomatika danomatika.com http://danomatika.com robotcowboy.com http://robotcowboy.com
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list