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.