It looks like you’re trying to create the joystick from scratch. If you really have certain specific use cases in mind, that would certainly be the way to go, but do you necessarily have to?
If not, then perhaps you might want to consider the default multitouch joystick object from the “create new object” button in the editor. Iirc it’s already setup to be used right off the bat. And you can customize the images used for it if that’s what you’re after.
Can you share a screenshot of your events for the joystick? Also, is it just visual? Like, the objects it’s supposed to control, do they move accordingly even though the joystick doesn’t look like it?