You’ll have to change it to use multi touch. At the moment you’re just using the mouse position, which is either mouse or single touch.
To make it multitouch will require keeping track of which touch id is on which joystick, and action accordingly. It’s bit more coding (obviously), but quite manageable