[PD] how to emulate mouse left-click to canvas?
Ingo Stock
mail at ingostock.de
Sat Jul 29 02:27:39 CEST 2017
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 at gmail.com
>> <mailto:reduzent at 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 at lists.iem.at mailing list
> UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: click-test.pd
Type: text/x-puredata
Size: 261 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20170729/47809cf7/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: OpenPGP digital signature
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20170729/47809cf7/attachment-0001.sig>
More information about the Pd-list
mailing list