I’m trying to add mobile controls to a custom character. The Thumbstick
character movement mode is exactly what I need, its just not showing up on screen and I can’t find any documentation on how to get the position of the thumbstick.
DevTouchMovementMode is set to Thumbstick
This is the code I’m trying to use to detect the thumbstick movement.
local thumbstickPos = Vector2.zero
uis.InputChanged:Connect(function(obj, _gameProcessed)
if _gameProcessed then return end
if obj.KeyCode == Enum.KeyCode.Thumbstick1 then
thumbstickPos = Vector2.new(obj.Position.X, obj.Position.Y)
end
end)