ParaJoyStick.OnUIDrag

Declaration

function OnUIDrag(Action callback) end

Description

The joystick is triggered when a UI button is dragged.

local joyStick = ParaUIService.GetJoyStickControl(HandType.Left, UIType.MoveJoyStick)
joyStick:OnUIDrag(function(position)
    print("position:x:" .. position.x ..",y:" .. position.y)
end)