Is there any way to improve this, or is it limited by the technology involved? I find that, for example, holding down the "down" arrow on my keyboard goes at least three times faster that holding down the euivalente OnTap button on Unified Remote. It even seems to do it intervals, were the first 5 times I hold it down it goes fast, but then full stops for a sec, and starts again, so maybe there's a way for it to behave closer to real-time input?
I imagine that "ontap" in the app waits for another tap when held down..... maybe with a timed interrupt.
Can you give the button an "ontap" function and an "onhold" function as well?
If you can you could try to make a loop.... keystroke-delay-returntokeystroke..... function for "onhold". Maybe you would not need the delay as the os would take care of the repeat interval.
Sorry for taking so long to answer, I had troubles getting the controller to pair with my pc. Anyhow. I tried simply repeating the function with an "onhold" trigger but sadly it somehow worked even slower! Perhaps you could point me in the right direction as to making that quick loop, as I don't really know how to make it myself.
Looking at it again, I am not sure a loop is necessary.
Is it possible to have multiple actions for the button?
<button text="arrow down" ontap="arrow_tap" onhold="arrow_held" onup="arrow_up" />
actions.arrow_tap = function () kb.stroke("down"); -- a normal "one press" key action end actions.arrow_held = function () kb.down("down"); -- this should be the equivalent of holding the key down on the computer keyboard end actions.arrow_up = function () kb.up("down"); -- if you can have more than one action for the button this will release the key end
I never answered this, sorry. It was a good idea, but it didn't work. The button gets even more slow if I do this.
It's okay though, I can live with the current velocity.