function DynamicThumbstick.GetIsJumping(z)local y=z.isJumping z.isJumping=false return y end function DynamicThumbstick.Enable(H,z,y)if z==nil then return false end z=z and true or false if H.enabled==z then return true end if z then if not H.thumbstickFrame then H:Create(y)end H:BindContextActions()else ContextActionService:UnbindAction(DYNAMIC_THUMBSTICK_ACTION_NAME)H:OnInputEnded()end H.enabled=z H.thumbstickFrame.Visible=z end

function DynamicThumbstick:GetIsJumping()
	local wasJumping = self.isJumping
	self.isJumping = false
	return wasJumping
end

function DynamicThumbstick:Enable(enable, uiParentFrame)
	if enable == nil then return false end			-- If nil, return false (invalid argument)
	enable = enable and true or false				-- Force anything non-nil to boolean before comparison
	if self.enabled == enable then return true end	-- If no state change, return true indicating already in requested state

	if enable then
		-- Enable
		if not self.thumbstickFrame then
			self:Create(uiParentFrame)
		end

		self:BindContextActions()
	else
		ContextActionService:UnbindAction(DYNAMIC_THUMBSTICK_ACTION_NAME)
		-- Disable
		self:OnInputEnded() -- Cleanup
	end

	self.enabled = enable
	self.thumbstickFrame.Visible = enable
end
