Hello! It's my first post here and a beginning of my adventure with PD
I am writing an external using [keyname]. I understand that when a key is pressed, this object (and [key] as well) interprets that the key press is being repeated.
When holding a keyboard key and printing its left output, it turns out that the same object behaves differently when:
a ) the patcher has been just opened: prints 1 0 1 0 1 0 1 0 1 0 1 0 ....
b ) user manually created an object: prints 1 1 1 1 1 1 1 1 1 1 (0 when depressed)
I reported it here: https://github.com/pure-data/pure-data/issues/1845
Solving this issue is beyond of the scope of my question. I'm asking: how can I simulate the situation "b )", when patcher is initialised/opened? What kind of "flag" does [keyname] waits for to be initialised correctly?
Sad enough, I cannot just dynamically create a "dummy" object – it must be created manually. Also deleting object manually doesn't work. Only manual creation.
Also, the [keyup] object has the same flaw – its output repetition when "a )" and filters them out when "b )".
Thank you for your input/insight/sights!