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 <[email protected] >> <mailto:[email protected]>> 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> > > > > > > _______________________________________________ > [email protected] mailing list > UNSUBSCRIBE and account-management -> > https://lists.puredata.info/listinfo/pd-list >
#N canvas 491 321 368 210 10; #X symbolatom 42 42 20 0 0 0 - - -, f 20; #X obj 42 149 namecanvas \$0-test; #X obj 42 127 s \$0-test; #X obj 42 83 loadbang; #X msg 42 105 mouse 45 45 1 0; #X text 203 42 Type something...; #X connect 3 0 4 0; #X connect 4 0 2 0;
signature.asc
Description: OpenPGP digital signature
_______________________________________________ [email protected] mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
