Is there any way for me to listen to the default UI joystick for mobile from a localscript? I really don’t want to modify corescripts at all but I need to see changes to the virtual joystick.
Also, I seem to be having an issue, With device emulation turned on mobile controls are not appearing?? I’m not sure if this is a me being dumb problem or not
yeah but I just mean that’s something that Roblox updates and it’s a Roblox scripted thing that’s inserted automatically. It doesn’t change the fact that I don’t want to fork the code just to change one minor thing and prevent it from being updated with the rest of the “Core” guis later
You can use the :GetMoveVector() method on MasterControl (located under PlayerScripts > ControlScript > MasterControl on run-time) to get a cross-platform movement vector.
EDIT: don’t do this, the PlayerScripts are changing structure so this isn’t best practice anymore.
That’s perfect, I still have the issue though where I can’t see the touch movement controls. I thought studio included them during playsolo on an emulator?
This is an open issue for the mobile emulator right now, there’s a bug report about that. Going into options and changing the touch movement mode setting back and forth should make the controls appear.