Touchpad

31 views
Skip to first unread message

Brian Sawyer

unread,
Oct 28, 2023, 7:11:44 PM10/28/23
to QuadStick
I’m still figuring it out-if don’t touch the joystick or push it out of the dead zone it’ll work fine but if tiny amount push the joystick it’ll press on the center of the touchpad
On the touchpad mode using Astro’s playroom controller demo to see what’s going on with the touchpad 

Fred Davison

unread,
Oct 28, 2023, 7:51:17 PM10/28/23
to Brian Sawyer, QuadStick
I don't see the connection between what you are describing with the joystick versus that configuration snippet.  The joystick is not controlling the touch pad outputs.

The touchpad has two separate elements, the position and the switch underneath the touchpad that is activated when the pad is pressed.

That snippet mostly looks good to me, except it will press the pad on one end or the other, but since the pulse only lasts 200 ms, the position will swipe back to the center before the "touch" is released.

Try adding a second parameter to the delay_on to limit the amount of time the "touch" button is pressed, so it is released before the position pulse expires.  Something like delay_on 75 100.  That will release the touch button 25 ms before the position pulse expires.


Brian Sawyer

unread,
Oct 28, 2023, 8:05:24 PM10/28/23
to Fred Davison, QuadStick
Thank you for this.
Is 25ms enough or should I increase the pulse to 300
Is delay _on 50 100 fine
Sent from my iPad

> On Oct 28, 2023, at 4:51 PM, Fred Davison <fred.d...@gmail.com> wrote:
>
> 

Fred Davison

unread,
Oct 28, 2023, 10:58:18 PM10/28/23
to Brian Sawyer, QuadStick
You could experiment with the durations to see what is reliably detected. 
Reply all
Reply to author
Forward
0 new messages