Create custom path for new input system

Hello, I want to make a custom path to use touch joystick, but cannot figure out how to do it.
My goal is to use this unity asset with the new input system.

I've tried this, but it didn't work

        const string json = @"
    {
        ""name"" : ""Overrides"",
        ""extend"" : ""Mouse"",
        ""controls"" : [
            { ""name"" : ""extraControl"", ""layout"" : ""Button"" }
        ]
    }
";

        InputSystem.RegisterLayoutOverride(json);
    }

Think I'd need more details about what you're going for here. Not familiar with Joystick Pack but you can assembly virtual joysticks in arbitrary stick and button combinations using on-screen controls.

The code snippet you posted simply adds one extra button to Mouse devices -- which by itself, however, doesn't really do anything.