There is an xy pad called "touch" in the droidparty abstractions which works on vanilla. I just tested on 0.54. It could be used or possibly checked as to why it doesn't break as compared to your abstraction.
https://github.com/chr15m/PdDroidParty/tree/master/droidparty-abstractions
There isn't a help patch but the creation args are: width height sendname
Dan Wilcox @danomatika http://twitter.com/danomatika danomatika.com http://danomatika.com/ robotcowboy.com http://robotcowboy.com/
This is a great object but you need to click on the box for it to work. The other is literally a pad (so you can click anywhere in the box and get coordinates)
I’ll investigate more and will come back with the change in all cases
Hello,
On 21/8/23 10:46 pm, Pierre Alexandre Tremblay wrote:
This one looks like it could be better. The author figured out a hack to get the click:
https://forum.pdpatchrepo.info/topic/10854/xy-abstraction-to-get-mouse-click...
Cheers,
Chris.
Ok a lot more investigations later, I have isolated the change of behaviour.
donecanvasdialog 1 -1 0 0 0 0 0 0 0 0 0
Which was used to reset the patcher’s sub patchers at the top left is corrupting the ability for a struct to broadcast its click through a graph. Now, can anyone on the Pd dev confirm this?
How to reproduce:
https://forum.pdpatchrepo.info/topic/10854/xy-abstraction-to-get-mouse-click... https://forum.pdpatchrepo.info/topic/10854/xy-abstraction-to-get-mouse-click-and-drag-coordinates-vanilla
In pd 0.53.2 it works
In pd 0.54.0 it doesn’t receive the click from the #0-rectangle (so it draws and emits nothing)
To fix it, remove top left the donecanvasdialog elements (2 of them)
Then reinstantiate the 3 pd Subpatches on the right
(Or you can just try the one I attach)
It is not fixed completely yet but the click gets through now. I really wonder what has changed there…
Any pointer (pun intended) welcome
p
Sigh.
@Miller Can we please finally get https://github.com/pure-data/pure-data/pull/627? This PR has been sitting around for more than 4 years now. In the meantime, people kept abusing the private "donecanvasdialog" message in place of a better and officially supported alternative, and they will continue to do so...
Christof
On 30.08.2023 00:14, Pierre Alexandre Tremblay wrote:
Dear Miller and Christof
I’m sorry to be the cause of pain - I will amend the patch now but what is strange in this one is that recoding it actually changes its behaviour.
In all cases, I wish I had seen the changelog entry that would tell me how the hidden but essential donecanvasdialog settings / behaviour has changed. In all case, I hope this unexpected behaviour report is somewhat helpful.
I know my desire to stay vanilla complicates things too, but again, so many combinations of hardware and oses I think might justify my self-inflicted pain
p