Turning off touch joysticks programmatically

Is there a way to turn the virtual joysticks off and on at runtime? I want to be able to use the virtual joystick for certain parts of the game, but then switch to custom touch-handling code at other times.


This would be very useful to one of my projects but I haven’t seen any indication that this is possible out of the box.

I just replied to this in frustration over no answer to this after a serious amount of time googling and going through docs and forums. I’m editing that post as I think I just found what I was looking for (not tested it myself but looks legit):